Closed intgr closed 4 years ago
_SpecialForm types like Literal, NoReturn don't have an __mro__ attribute.
_SpecialForm
Literal
NoReturn
__mro__
Previously, using them in a dataclass caused AttributeError.
AttributeError
Also added a unit test for regular unsupported types.
_SpecialForm
types likeLiteral
,NoReturn
don't have an__mro__
attribute.Previously, using them in a dataclass caused
AttributeError
.Also added a unit test for regular unsupported types.