diff --git a/sanic/app.py b/sanic/app.py index c1e437a029..f5bfbccff4 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -1064,7 +1064,7 @@ def run( ssl: Union[dict, SSLContext, None] = None, sock: Optional[socket] = None, workers: int = 1, - protocol: Type[Protocol] = None, + protocol: Optional[Type[Protocol]] = None, backlog: int = 100, stop_event: Any = None, register_sys_signals: bool = True,