Fix several mypy errors when run on the 3.11 stdlib (#7389)

This commit is contained in:
Alex Waygood
2022-02-27 01:49:36 +00:00
committed by GitHub
parent 95df201a78
commit 2d6ab4d3bf
3 changed files with 29 additions and 48 deletions

View File

@@ -298,7 +298,7 @@ class BaseEventLoop(AbstractEventLoop):
self, protocol_factory: Callable[[], _ProtocolT], sock: socket, *, ssl: _SSLContext = ...
) -> tuple[BaseTransport, _ProtocolT]: ...
if sys.version_info >= (3, 11):
async def create_datagram_endpoint(
async def create_datagram_endpoint( # type: ignore[override]
self,
protocol_factory: Callable[[], _ProtocolT],
local_addr: tuple[str, int] | None = ...,