[New-bugs-announce] [issue46955] The documentation mentions asyncio.Server. It does not exist.

Stefan Zabka report at bugs.python.org
Tue Mar 8 05:01:14 EST 2022


New submission from Stefan Zabka <szabka at 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 <report at bugs.python.org>
<https://bugs.python.org/issue46955>
_______________________________________


More information about the New-bugs-announce mailing list