Skip to content

Commit

Permalink
Update Key.py
Browse files Browse the repository at this point in the history
Don't use "int" on eq methods, propagate this forward to handle PGroups
  • Loading branch information
Qirky committed Aug 7, 2019
1 parent ea2b14a commit b87d669
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions FoxDot/lib/Key.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,32 +162,32 @@ def __rxor__(self, other):

@convert_pattern_args
def __eq__(self, other):
function = lambda value: int(value == other)
function = lambda value: value == other
return self.transform(function)

@convert_pattern_args
def __ne__(self, other):
function = lambda value: int(value != other)
function = lambda value: (value != other)
return self.transform(function)

@convert_pattern_args
def __gt__(self, other):
function = lambda value: int(value > other)
function = lambda value: (value > other)
return self.transform(function)

@convert_pattern_args
def __ge__(self, other):
function = lambda value: int(value >= other)
function = lambda value: (value >= other)
return self.transform(function)

@convert_pattern_args
def __lt__(self, other):
function = lambda value: int(value < other)
function = lambda value: (value < other)
return self.transform(function)

@convert_pattern_args
def __le__(self, other):
function = lambda value: int(value <= other)
function = lambda value: (value <= other)
return self.transform(function)

def __abs__(self):
Expand Down

0 comments on commit b87d669

Please sign in to comment.