You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee='https://github.com/asvetlov'closed_at=<Date2022-02-24.10:09:09.089>created_at=<Date2021-08-11.08:38:49.198>labels= ['3.11', '3.9', '3.10', 'expert-asyncio']
title='asyncio: create_datagram_endpoint() does not return a DatagramTransport'updated_at=<Date2022-03-13.23:58:06.656>user='https://bugs.python.org/ThomasTrummer'
According to the documentation loop.create_datagram_endpoint() returns an asyncio.DatagramTransport. However on Windows this is not the case when the ProactorEventLoop is used (which seems to be the default since Python 3.8). This is a problem because a DatagramProtocol subclass needs a downcast in order to satisfy the type system (or mypy for that matter).