New submission from Stefan Zabka <sza...@mozilla.com>:
The asyncio documentation claims that there is a class [asyncio.Server](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.Server). However when looking in the sources I can only find [asyncio.base_events.Server](https://github.com/python/cpython/blob/be095f6c32188bba02079d086ac8639ea37cec3c/Lib/asyncio/base_events.py#L274-L384) which does not get exposed via `__all__` and can not be imported as asyncio.Server. I had to name the type as I wanted to use this class as a type annotation for mypy. ---------- components: asyncio messages: 414741 nosy: asvetlov, vringar, yselivanov priority: normal severity: normal status: open title: The documentation mentions asyncio.Server. It does not exist. versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46955> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com