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: