[issue44606] Discrepancy between isinstance() and issubclass() for union types

Guido van Rossum report at bugs.python.org
Tue Jul 13 10:22:41 EDT 2021


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

Converting None to type(None) is fine, as long as the str() /repr()
converts it back, e.g. repr(int | None) should print just that, not
NoneType.--
--Guido (mobile)

----------

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


More information about the Python-bugs-list mailing list