black, ruff

This commit is contained in:
Andrej730
2026-08-31 15:00:26 +05:00
parent 481becfc05
commit d0119479a4
6 changed files with 24 additions and 22 deletions
@@ -510,7 +510,11 @@ def get_project_unit(
for unit in unit_assignment.Units or []:
if getattr(unit, "UnitType", None) == unit_type:
return unit
if dimensional_match is None and unit.is_a("IfcDerivedUnit") and identify_unit_dimensions(unit) == unit_type:
if (
dimensional_match is None
and unit.is_a("IfcDerivedUnit")
and identify_unit_dimensions(unit) == unit_type
):
dimensional_match = unit
return dimensional_match