Skip to content

Commit

Permalink
lint: redefined-outer-name filter()
Browse files Browse the repository at this point in the history
  • Loading branch information
tklockau committed Jun 16, 2023
1 parent 9dd67f0 commit 2b76df6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions raillabel/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def _seperate_filters_by_level(filters: t.List[t.Type]) -> t.Dict[str, t.List[t.

filters_by_level = {level: [] for level in all_filter_levels}
for level in filters_by_level:
for filter in filters:
if level in filter.LEVELS:
filters_by_level[level].append(filter)
for filter_class in filters:
if level in filter_class.LEVELS:
filters_by_level[level].append(filter_class)

return filters_by_level

Expand Down

0 comments on commit 2b76df6

Please sign in to comment.