Skip to content

Commit

Permalink
Complete 'YNode.__init__' magic method
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed May 23, 2023
1 parent c11ad1b commit 490a36d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sect/core/trapezoidal/y_node.py
Expand Up @@ -9,15 +9,13 @@


class YNode(Node):
__slots__ = 'edge', 'above', 'below'
__slots__ = 'above', 'below', 'edge'

def __init__(self, edge: Edge, below: Node, above: Node) -> None:
super().__init__()
self.edge = edge
self.below = below
self.above = above
self.below._add_parent(self)
self.above, self.below, self.edge = above, below, edge
self.above._add_parent(self)
self.below._add_parent(self)

__repr__ = generate_repr(__init__)

Expand Down

0 comments on commit 490a36d

Please sign in to comment.