Fixed type checking error

This commit is contained in:
Josh Bartlett 2023-09-25 11:28:45 +10:00
parent 5fb7eaaeab
commit c35497349e

View File

@ -65,7 +65,7 @@ class SignalMixin(metaclass=SanicMeta):
def add_signal( def add_signal(
self, self,
handler: Optional[Callable[..., Any]], handler: Optional[Callable[..., Any]],
event: str, event: Union[str, Enum],
condition: Optional[Dict[str, Any]] = None, condition: Optional[Dict[str, Any]] = None,
exclusive: bool = True, exclusive: bool = True,
) -> Callable[..., Any]: ) -> Callable[..., Any]: