Skip to content

Commit

Permalink
fix node import themes.py
Browse files Browse the repository at this point in the history
Current implementation throws NameError: name 'Node' is not defined
Node class is imported only when the code is being type-checked, but not when it's being executed which causes the error.
  • Loading branch information
Tara-Lakshmipathy authored Nov 18, 2024
1 parent 6b57239 commit 2f52df9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyironflow/themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
from pyiron_workflow.nodes.function import Function
from pyiron_workflow.nodes.macro import Macro
from pyiron_workflow.nodes.transform import DataclassNode

if typing.TYPE_CHECKING:
from pyiron_workflow.node import Node
from pyiron_workflow.node import Node


def get_color(node: Node, theme: typing.Literal['light']):
Expand Down

0 comments on commit 2f52df9

Please sign in to comment.