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')

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton