Comment Comment by throw_a_grenade Dataclasses, like typing.NamedTuple, do not care about type hints: >>> @dataclasses.dataclass ... class D: ... x: int ... >>> D('a') D(x='a') parent throw_a_grenade 3 years ago