Issues with `__init__`
Closed this issue · 0 comments
PythonFZ commented
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)
- It does not run through
self._name
would not beself.name
butConnector(node, "name")