[issue45418] types.UnionType is not subscriptable
Ken Jin
report at bugs.python.org
Sun Oct 10 03:50:23 EDT 2021
Ken Jin <kenjin4096 at gmail.com> added the comment:
No worries!
> So I'll have to add some `if` in my code.
Yeah, we had to do that in the typing module too. Hope you manage to fix your library without much trouble.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45418>
_______________________________________
More information about the Python-bugs-list
mailing list