Skip to content

Commit

Permalink
Edited the web.run_app declaration. (#6401) (#6405)
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.

(cherry picked from commit 5e0e6b7)

Co-authored-by: TiunovNN <Tiunov.li.174@gmail.com>
  • Loading branch information
patchback[bot] and TiunovNN committed Dec 9, 2021
1 parent 97848c0 commit 677eec9
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 @@ -227,6 +227,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 @@ -290,7 +290,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 677eec9

Please sign in to comment.