[issue45359] TopologicalSorter is not Generic at runtime (but is in typeshed)

Andrew Svetlov report at bugs.python.org
Thu Dec 9 08:14:49 EST 2021


Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:

`if TYPE_CHECKING:` is a good choice, it works fine just now.
`from __future__ import annotations` is another alternative.

I don't see a reason for REMOVING already existing and correct annotations from typeshed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45359>
_______________________________________


More information about the Python-bugs-list mailing list