Instagram / Instagram/Fixit

add slots=True to the dataclass replacing named tuples.

Open
#428 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
714
Forks
72
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.