Skip to content

Commit

Permalink
Wrap run()'s "protocol" type annotation in Optional[] (#1869)
Browse files Browse the repository at this point in the history
As the default is None and the function will determine a sane value
in that case, the correct annotation is "Optional[Type[Protocol]]".
  • Loading branch information
linusg authored Jun 11, 2020
1 parent 496e87e commit bedf68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bedf68a

Please sign in to comment.