Skip to content

Commit

Permalink
fix(typing): use proper type for SinkCallable **kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
jap committed Nov 20, 2024
1 parent b541976 commit c69325c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions falcon/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,14 @@ async def __call__(


class SinkCallable(Protocol):
def __call__(self, req: Request, resp: Response, **kwargs: str) -> None: ...
def __call__(
self, req: Request, resp: Response, **kwargs: Optional[str]
) -> None: ...


class AsgiSinkCallable(Protocol):
async def __call__(
self, req: AsgiRequest, resp: AsgiResponse, **kwargs: str
self, req: AsgiRequest, resp: AsgiResponse, **kwargs: Dict Optional[str]
) -> None: ...


Expand Down

0 comments on commit c69325c

Please sign in to comment.