[issue41370] PEP 585 and ForwardRef

Guido van Rossum report at bugs.python.org
Sat Jul 25 18:08:37 EDT 2020


Guido van Rossum <guido at python.org> added the comment:

Hm, recursive type aliases are an interesting issue. We may be able to do better there for 3.10, even if we can't fix it for 3.9 (or at least not for 3.9.0).

But in the meantime maybe you can come up with a PR that adds a note to the typing docs in 3.10 explaining that `list["int"]` will not be resolved to `list[int]`, even though it works for `List["int"]`?

----------

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


More information about the Python-bugs-list mailing list