add slots=True to the dataclass replacing named tuples.
eugenenelou opened this issue · comments
Eugène Nélou commented
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.