Skip to content

Commit

Permalink
test: fix PT018 violation
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Jun 10, 2024
1 parent 8bbb78e commit cd56353
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/update_init_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def update__all__variable() -> None:
elif first_definition_line is not None and line.startswith("]"):
last_definition_line = idx
break
assert first_definition_line is not None and last_definition_line is not None
assert first_definition_line is not None
assert last_definition_line is not None

# Figure out which attributes are relevant
relevant_attributes = sorted(x for x in alt.__dict__ if _is_relevant_attribute(x))
Expand Down

0 comments on commit cd56353

Please sign in to comment.