Closed
Description
Bug report
Correct ones: https://github.com/python/typeshed/blob/8885cc870cc1089cba30a6ac6d4ea1e32c83cedb/stdlib/asyncio/staggered.pyi
There are several major problems:
loop: events.AbstractEventLoop = None
, relies on very old mypy behaviourcoro_fns: typing.Iterable[typing.Callable[[], typing.Awaitable]]
does not have type var forAwaitable
, which is very hard to read: reader has to infer this type variable themself
This is a problem if people are using runtime type-checkers that will use __annotations__
from this function and not typeshed definitions.
Basically, we don't use annotations in the stdlib, but when we do: it should be correct.
I propose fixing it and even upgrading some other stuff:
- It is a simple quality of life improvement
- It only uses simple types
- All python versions for backports are supported
- It should not be edited again in the recent future
Linked PRs
Metadata
Metadata
Assignees
Projects
Status
Done