3 ms·
Just use typing.NamedTuple.
by heavenlyblue 8y ago
Just use typing.NamedTuple.
- mhneu 8y agoThat has the same problems with the extra class definition: extra lines of code, choice of scope to define the new class, and maybe issues with pickling.