[issue45665] Problems caused by isinstance(list[int], type) returning True

Alex Waygood report at bugs.python.org
Tue Jan 4 13:00:07 EST 2022


Alex Waygood <Alex.Waygood at Gmail.com> added the comment:

`isinstance(list[int], type)` returns `True` in 3.9 as well, so the behaviour has been around for a while. (Not a comment on whether the change is worth making, just a note.)

----------

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


More information about the Python-bugs-list mailing list