Skip to content

Commit

Permalink
Clearer __slots__ definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodd committed Sep 10, 2023
1 parent 5cb6875 commit 43d024c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lineprofilergui/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def __iter__(self):


class LineData:
__slots__ = "_func_data line_no code total_time hits filename".split()
__slots__ = ["_func_data", "line_no", "code", "total_time", "hits", "filename"]

def __init__(self, func_data, line_no, code, total_time, hits): # noqa: PLR0913
self._func_data = func_data
Expand Down

0 comments on commit 43d024c

Please sign in to comment.