Skip to content

Commit

Permalink
fix(typing): use proper type for SinkCallable **kwargs (#2411)
Browse files Browse the repository at this point in the history
  • Loading branch information
jap authored Nov 20, 2024
1 parent b541976 commit 66eb886
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: Optional[str]
) -> None: ...


Expand Down

0 comments on commit 66eb886

Please sign in to comment.