Open eugenenelou opened 4 months ago
To better mimick the behaviour of NamedTuple, the replacing dataclass should have slots=True so that the underlying class stores the attribute as a tuple.
NamedTuple
slots=True
To better mimick the behaviour of
NamedTuple
, the replacing dataclass should haveslots=True
so that the underlying class stores the attribute as a tuple.