Skip to content

Commit

Permalink
Edited the web.run_app declaration. (#6401)
Browse files Browse the repository at this point in the history
* Edited the web.run_app declaration.

The run_app function takes the "sock" parameter which
can be iterable as well.

* Updated CONTRIBUTORS.txt.

* Added description to CHANGES.

* Use TypingIterable instead of Iterable.
  • Loading branch information
TiunovNN committed Dec 9, 2021
1 parent e1ed247 commit 5e0e6b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/6401.doc
@@ -0,0 +1 @@
Edited the web.run_app declaration.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Expand Up @@ -234,6 +234,7 @@ Navid Sheikhol
Nicolas Braem
Nikolay Kim
Nikolay Novik
Nikolay Tiunov
Nándor Mátravölgyi
Oisin Aylward
Olaf Conradi
Expand Down
4 changes: 2 additions & 2 deletions aiohttp/web.py
Expand Up @@ -289,7 +289,7 @@ async def _run_app(
host: Optional[Union[str, HostSequence]] = None,
port: Optional[int] = None,
path: Optional[str] = None,
sock: Optional[socket.socket] = None,
sock: Optional[Union[socket.socket, TypingIterable[socket.socket]]] = None,
shutdown_timeout: float = 60.0,
keepalive_timeout: float = 75.0,
ssl_context: Optional[SSLContext] = None,
Expand Down Expand Up @@ -463,7 +463,7 @@ def run_app(
host: Optional[Union[str, HostSequence]] = None,
port: Optional[int] = None,
path: Optional[str] = None,
sock: Optional[socket.socket] = None,
sock: Optional[Union[socket.socket, TypingIterable[socket.socket]]] = None,
shutdown_timeout: float = 60.0,
keepalive_timeout: float = 75.0,
ssl_context: Optional[SSLContext] = None,
Expand Down

0 comments on commit 5e0e6b7

Please sign in to comment.