Cleanup: tweak multi-line parenthesis for Python scripts

Reduce right shift, moving closing parenthesis onto own line
for clarity & reducing diff noise in some cases.

Ref !147857
This commit is contained in:
Campbell Barton
2025-10-12 03:31:31 +00:00
parent ffa750fd5e
commit 7a249222be
33 changed files with 287 additions and 164 deletions

View File

@@ -211,8 +211,10 @@ class NodeAddOperator(NodeOperator):
def poll(cls, context):
space = context.space_data
# Needs active node editor and a tree to add nodes to.
return (space and (space.type == 'NODE_EDITOR') and
space.edit_tree and space.edit_tree.is_editable)
return (
space and (space.type == 'NODE_EDITOR') and
space.edit_tree and space.edit_tree.is_editable
)
# Default invoke stores the mouse position to place the node correctly
# and optionally invokes the transform operator.