[issue44490] PEP 604 Union (int | str) doesn't have __parameters__
Jelle Zijlstra
report at bugs.python.org
Tue Jun 29 18:43:44 EDT 2021
Jelle Zijlstra <jelle.zijlstra at gmail.com> added the comment:
I'd also be OK with returning a `types.GenericAlias(int | list[T], str)`, which might be simpler. It doesn't matter for static type checkers, and runtime type checkers can extract what they need anyway.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44490>
_______________________________________
More information about the Python-bugs-list
mailing list