[issue33170] New type based on int() created with typing.NewType is not consistent

Maxim Avanov report at bugs.python.org
Wed Mar 28 11:04:21 EDT 2018


Maxim Avanov <maxim.avanov at gmail.com> added the comment:

Logically, I would expect it to behave similarly to

```
>>> class PercentDiscount(int): pass

>>> PercentDiscount('50') == PercentDiscount(50)
True
```

----------

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


More information about the Python-bugs-list mailing list