Remove less-than check from Position
This commit is contained in:
parent
b382e3d080
commit
ca0366e867
@ -104,9 +104,6 @@ class Position:
|
||||
def __eq__(self, other):
|
||||
return isinstance(other, Position) and self.x == other.x and self.y == other.y
|
||||
|
||||
def __lt__(self, other):
|
||||
return self[0] < other[0] and self[1] < other[1]
|
||||
|
||||
|
||||
class MatrixProjection(BaseConstraint):
|
||||
def __init__(self, pos: Position, matrix: Matrix):
|
||||
|
@ -17,12 +17,6 @@ def test_position(position):
|
||||
assert position[1] == pos.y
|
||||
|
||||
|
||||
def test_position_can_compare_with_tuple():
|
||||
pos = Position(3, 3)
|
||||
|
||||
assert pos < (4, 4)
|
||||
|
||||
|
||||
def test_position_notifies_on_x_change(handler):
|
||||
pos = Position(3, 3)
|
||||
pos.add_handler(handler)
|
||||
|
Loading…
x
Reference in New Issue
Block a user