Wrap run()'s "protocol" type annotation in Optional[] (#1869)
As the default is None and the function will determine a sane value in that case, the correct annotation is "Optional[Type[Protocol]]".
This commit is contained in:
parent
496e87e4ba
commit
bedf68a9b2
|
@ -1064,7 +1064,7 @@ class Sanic:
|
|||
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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user