Skip to content

Commit

Permalink
fix (compat): remove the 'slots' kwarg from the dataclass decorator t…
Browse files Browse the repository at this point in the history
…o support python before py310
  • Loading branch information
bionicles committed Aug 7, 2024
1 parent 502948f commit c05c9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree_plus_src/count_tokens_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


# TODO: show off how well we parse_todo!
@dataclass(frozen=True, slots=True)
@dataclass(frozen=True) # , slots=True) # slots added py310
class TokenLineCount:
n_tokens: int = 0
n_lines: int = 0
Expand Down

0 comments on commit c05c9da

Please sign in to comment.