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
@@ -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: