[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing
Yurii Karabas
report at bugs.python.org
Fri Jul 23 11:20:19 EDT 2021
Yurii Karabas <1998uriyyo at gmail.com> added the comment:
`NewType` was converted into callable class at scope of https://bugs.python.org/issue44353
Currently `repr` of `NewType` is:
```
>>> UserId = NewType("UserId", int)
__main__.UserId
```
----------
nosy: +uriyyo
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34963>
_______________________________________
More information about the Python-bugs-list
mailing list