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(
self,
handler: Optional[Callable[..., Any]],
event: str,
event: Union[str, Enum],
condition: Optional[Dict[str, Any]] = None,
exclusive: bool = True,
) -> Callable[..., Any]: