Skip to content

Commit

Permalink
[3.7] Fix type hint on BaseRunner.addresses (#5086) (#5088)
Browse files Browse the repository at this point in the history
Backports the following commits to 3.7:
 - Fix type hint on BaseRunner.addresses (#5086)

Co-authored-by: ben-dl <[email protected]>
  • Loading branch information
aio-libs-github-bot[bot] and ported-pw authored Oct 19, 2020
1 parent 77d3153 commit a1e02e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/5086.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix type hint on BaseRunner.addresses (from List[str] to List[Any])
4 changes: 2 additions & 2 deletions aiohttp/web_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ def server(self) -> Optional[Server]:
return self._server

@property
def addresses(self) -> List[str]:
ret = [] # type: List[str]
def addresses(self) -> List[Any]:
ret = [] # type: List[Any]
for site in self._sites:
server = site._server
if server is not None:
Expand Down

0 comments on commit a1e02e0

Please sign in to comment.