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
+1 -1
View File
@@ -38,7 +38,7 @@ class Dxf2Ifc:
self.file.createIfcFaceOuterBound(
self.file.createIfcPolyLoop(
[
self.file.createIfcCartesianPoint((face[index].dxf.location))
self.file.createIfcCartesianPoint(face[index].dxf.location)
for index in range(len(face) - 1)
]
),
+1 -1
View File
@@ -81,7 +81,7 @@ def sync_guids(target_file: ifcopenshell.file, source_file: ifcopenshell.file) -
# New type with material was added.
print(f"WARNING! Couldn't find a matching rel for '{rel}'.")
return
rel_ = next((r for r in related_object_.HasAssociations if r.is_a("IfcRelAssociatesMaterial")))
rel_ = next(r for r in related_object_.HasAssociations if r.is_a("IfcRelAssociatesMaterial"))
assert rel_
rel.GlobalId = rel_.GlobalId
elif rel.is_a("IfcRelDeclares"):