Fix Ruff UP034 (extraneous-parentheses)

https://docs.astral.sh/ruff/rules/extraneous-parentheses/
This commit is contained in:
Andrej
2025-05-28 17:09:05 +05:00
parent 5f5ba72919
commit 7cde9629f8
23 changed files with 45 additions and 47 deletions
@@ -55,7 +55,7 @@ def unassign_lag_time(file: ifcopenshell.file, rel_sequence: ifcopenshell.entity
# What if you didn't?
ifcopenshell.api.sequence.unassign_lag_time(model, rel_sequence=sequence)
"""
if file.get_total_inverses((current_lag_time := rel_sequence.TimeLag)) == 1:
if file.get_total_inverses(current_lag_time := rel_sequence.TimeLag) == 1:
file.remove(current_lag_time)
else:
rel_sequence.TimeLag = None