Jelle Zijlstra <jelle.zijls...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44490>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to