Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Oct 11, 2023
1 parent b86eaae commit 2686f54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aiida_worktree/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def build_node(ndata):
# print(executor)
if inspect.isfunction(executor):
# calcfunction and workfunction
if getattr(executor, 'node_class', False):
if getattr(executor, "node_class", False):
if executor.node_class is CalcFunctionNode:
ndata["node_type"] = "calcfunction"
elif executor.node_class is WorkFunctionNode:
Expand All @@ -65,7 +65,9 @@ def build_node(ndata):
outputs.append(["General", port.name])
if spec.inputs.dynamic:
ndata["var_kwargs"] = spec.inputs.dynamic
inputs.append(["General", spec.inputs.dynamic, {"property": ["General", {"default": {}}]}])
inputs.append(
["General", spec.inputs.dynamic, {"property": ["General", {"default": {}}]}]
)
# print("kwargs: ", kwargs)
ndata["node_class"] = Node
ndata["kwargs"] = kwargs
Expand Down

0 comments on commit 2686f54

Please sign in to comment.