From c35497349eff5302e6a3d427eef028851dac08e3 Mon Sep 17 00:00:00 2001 From: Josh Bartlett Date: Mon, 25 Sep 2023 11:28:45 +1000 Subject: [PATCH] Fixed type checking error --- sanic/mixins/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/mixins/signals.py b/sanic/mixins/signals.py index 7b23d73a..b6be4611 100644 --- a/sanic/mixins/signals.py +++ b/sanic/mixins/signals.py @@ -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]: