Skip to content

Commit

Permalink
Adjust type annotations making print arg optional in web.run_app()
Browse files Browse the repository at this point in the history
  • Loading branch information
dutradda authored and webknjaz committed Apr 13, 2019
1 parent fc49f97 commit baddbfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/3690.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Do print argument optional on run_app function
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Denilson Amorim
Denis Matiychuk
Dima Veselov
Dimitar Dimitrov
Diogo Dutra da Mata
Dmitriy Safonov
Dmitry Doroshev
Dmitry Lukashin
Expand Down
4 changes: 2 additions & 2 deletions aiohttp/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ async def _run_app(app: Union[Application, Awaitable[Application]], *,
sock: Optional[socket.socket]=None,
shutdown_timeout: float=60.0,
ssl_context: Optional[SSLContext]=None,
print: Callable[..., None]=print,
print: Optional[Callable[..., None]]=print,
backlog: int=128,
access_log_class: Type[AbstractAccessLogger]=AccessLogger,
access_log_format: str=AccessLogger.LOG_FORMAT,
Expand Down Expand Up @@ -379,7 +379,7 @@ def run_app(app: Union[Application, Awaitable[Application]], *,
sock: Optional[socket.socket]=None,
shutdown_timeout: float=60.0,
ssl_context: Optional[SSLContext]=None,
print: Callable[..., None]=print,
print: Optional[Callable[..., None]]=print,
backlog: int=128,
access_log_class: Type[AbstractAccessLogger]=AccessLogger,
access_log_format: str=AccessLogger.LOG_FORMAT,
Expand Down

0 comments on commit baddbfe

Please sign in to comment.