From a1e02e0cfd82d86ca1fc2c75936d648a6e2af79a Mon Sep 17 00:00:00 2001 From: "aio-libs-github-bot[bot]" <72856194+aio-libs-github-bot[bot]@users.noreply.github.com> Date: Mon, 19 Oct 2020 16:34:03 +0000 Subject: [PATCH] [3.7] Fix type hint on BaseRunner.addresses (#5086) (#5088) Backports the following commits to 3.7: - Fix type hint on BaseRunner.addresses (#5086) Co-authored-by: ben-dl --- CHANGES/5086.bugfix | 1 + aiohttp/web_runner.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 CHANGES/5086.bugfix diff --git a/CHANGES/5086.bugfix b/CHANGES/5086.bugfix new file mode 100644 index 00000000000..5e45a265326 --- /dev/null +++ b/CHANGES/5086.bugfix @@ -0,0 +1 @@ +Fix type hint on BaseRunner.addresses (from List[str] to List[Any]) diff --git a/aiohttp/web_runner.py b/aiohttp/web_runner.py index ef9bd5829b6..47dab771a8a 100644 --- a/aiohttp/web_runner.py +++ b/aiohttp/web_runner.py @@ -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: