Fixed type checking error
This commit is contained in:
parent
5fb7eaaeab
commit
c35497349e
|
@ -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]:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user