Instagram / Fixit

Advanced Python linting framework with auto-fixes and hierarchical configuration that makes it easy to write custom in-repo lint rules.
https://fixit.rtfd.io/en/latest/
Other
659 stars 62 forks source link

add slots=True to the dataclass replacing named tuples. #428

Open eugenenelou opened 4 months ago

eugenenelou commented 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.