Skip to content

Commit

Permalink
Fix GeneralExceptionHandler typehint (#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldygg authored Sep 8, 2024
1 parent 54223e1 commit 218ddcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faststream/broker/middlewares/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from faststream.types import AsyncFuncAny


GeneralExceptionHandler: TypeAlias = Callable[..., None]
GeneralExceptionHandler: TypeAlias = Union[Callable[..., None], Callable[..., Awaitable[None]]]
PublishingExceptionHandler: TypeAlias = Callable[..., "Any"]

CastedGeneralExceptionHandler: TypeAlias = Callable[..., Awaitable[None]]
Expand Down

0 comments on commit 218ddcc

Please sign in to comment.