mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 22:16:41 +00:00
Fix Ruff UP034 (extraneous-parentheses)
https://docs.astral.sh/ruff/rules/extraneous-parentheses/
This commit is contained in:
@@ -86,7 +86,7 @@ class Patcher:
|
||||
assert isinstance(wall.data, bpy.types.Mesh)
|
||||
wall.data.transform(
|
||||
Matrix.Translation(
|
||||
(wall.matrix_world.inverted().to_quaternion() @ (wall.matrix_world.translation - new_origin))
|
||||
wall.matrix_world.inverted().to_quaternion() @ (wall.matrix_world.translation - new_origin)
|
||||
)
|
||||
)
|
||||
wall.matrix_world.translation = new_origin
|
||||
|
||||
@@ -55,10 +55,8 @@ class Patcher:
|
||||
def patch(self):
|
||||
if isinstance(self.filepaths, Union[str, ifcopenshell.file]):
|
||||
print(
|
||||
(
|
||||
"WARNING. Passing a single file/filepath will be deprecated soon for MergeProjects ifcpatch, "
|
||||
"replace it with a list of file/filepaths."
|
||||
)
|
||||
"WARNING. Passing a single file/filepath will be deprecated soon for MergeProjects ifcpatch, "
|
||||
"replace it with a list of file/filepaths."
|
||||
)
|
||||
self.filepaths = [self.filepaths]
|
||||
for filepath in self.filepaths:
|
||||
|
||||
Reference in New Issue
Block a user