zincware/ZnFlow

Issues with `__init__`

Closed this issue · 0 comments

The following Code has multiple issues:

class MyNode(znflow.Node):
    def __init__(self, name):
        self.name = name
        self._name = self.name

with znflow.DiGraph() as dag:
    node = MyNode(name="John Doe")

print(node.name)
  1. It does not run through
  2. self._name would not be self.name but Connector(node, "name")