Skip to content

Commit

Permalink
Complete 'XNode.__init__' magic method
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed May 23, 2023
1 parent 2ac95a3 commit c11ad1b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sect/core/trapezoidal/x_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@


class XNode(Node):
__slots__ = 'point', 'left', 'right'
__slots__ = 'left', 'point', 'right'

def __init__(self, point: Point, left: Node, right: Node) -> None:
super().__init__()
self.point = point
self.left = left
self.right = right
self.left, self.point, self.right = left, point, right
self.left._add_parent(self)
self.right._add_parent(self)

Expand Down

0 comments on commit c11ad1b

Please sign in to comment.