Skip to content

Commit

Permalink
Complete 'Trapezoid.__init__' magic method
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed May 23, 2023
1 parent 605ff04 commit 2ac95a3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sect/core/trapezoidal/trapezoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ def __init__(self,
below: Edge,
above: Edge) -> None:
assert left < right, 'Incorrect endpoints order'
self.left = left
self.right = right
self.above = above
self.below = below
self.above, self.below, self.left, self.right = (
above, below, left, right
)
self.node: Optional[Node] = None
self._lower_left: Optional[Trapezoid] = None
self._lower_right: Optional[Trapezoid] = None
Expand Down

0 comments on commit 2ac95a3

Please sign in to comment.