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.

(cherry picked from commit 5e0e6b7)
  • Loading branch information
TiunovNN authored and patchback[bot] committed Dec 9, 2021
1 parent 83e9b8a commit 74749e7
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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Edited the web.run_app declaration.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,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
Original file line number Diff line number Diff line change
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 74749e7

Please sign in to comment.