Closed saytosid closed 4 years ago
*Issue number of the reported bug or feature request: #35
Describe your changes Changed is_newtype() to check for existence of __supertype__ .
is_newtype()
__supertype__
I couldn't find a documented way to check for isinstance(_, NewType). After looking at the implementation, this should be enough.
isinstance(_, NewType)
*Issue number of the reported bug or feature request: #35
Describe your changes Changed
is_newtype()
to check for existence of__supertype__
.I couldn't find a documented way to check for
isinstance(_, NewType)
. After looking at the implementation, this should be enough.