Skip to content

Commit

Permalink
War on ruff!
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda committed Feb 11, 2025
1 parent 9133a6c commit 73f9946
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pyiron_workflow/nodes/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@

def _extract_data(item: Channel) -> dict:
data = {}
for key, value in zip(["default", "value", "type_hint"], 2 * [NOT_DATA] + [None]):
for key, value in zip(
["default", "value", "type_hint"],
2 * [NOT_DATA] + [None],
strict=True
):
if getattr(item, key) is not value:
data[key] = getattr(item, key)
return data
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/nodes/test_export.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import unittest

from pyiron_workflow._tests import ensure_tests_in_python_path
from pyiron_workflow.workflow import Workflow
from pyiron_workflow.nodes.composite import Composite
from pyiron_workflow.workflow import Workflow

ensure_tests_in_python_path()

Expand Down

0 comments on commit 73f9946

Please sign in to comment.