mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-28 15:53:00 +00:00
Fix Ruff UP034 (extraneous-parentheses)
https://docs.astral.sh/ruff/rules/extraneous-parentheses/
This commit is contained in:
@@ -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)
|
||||
]
|
||||
),
|
||||
|
||||
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user