Skip to content

Commit

Permalink
chore: hide the fustruating mypy errors until we sort BaseRouter.add …
Browse files Browse the repository at this point in the history
…route changing in subclasses (#1060)
  • Loading branch information
dave42w authored Nov 30, 2024
1 parent 7fe0c04 commit 3d76169
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions robyn/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _format_response(
description=str(res).encode("utf-8"),
)

def add_route(
def add_route( # type: ignore
self,
route_type: HttpMethod,
endpoint: str,
Expand Down Expand Up @@ -254,7 +254,7 @@ def __init__(self, dependencies: DependencyMap = DependencyMap()) -> None:
def set_authentication_handler(self, authentication_handler: AuthenticationHandler):
self.authentication_handler = authentication_handler

def add_route(
def add_route( # type: ignore
self,
middleware_type: MiddlewareType,
endpoint: str,
Expand Down Expand Up @@ -380,7 +380,7 @@ def __init__(self) -> None:
super().__init__()
self.routes: dict = {}

def add_route(self, endpoint: str, web_socket: WebSocket) -> None:
def add_route(self, endpoint: str, web_socket: WebSocket) -> None: # type: ignore
self.routes[endpoint] = web_socket

def get_routes(self) -> Dict[str, WebSocket]:
Expand Down

0 comments on commit 3d76169

Please sign in to comment.