Skip to content

Commit

Permalink
Fix .sage() call in GapObj.__contains__
Browse files Browse the repository at this point in the history
  • Loading branch information
embray committed Jan 12, 2021
1 parent 5339c05 commit 1e78f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gappy/element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ cdef class GapObj:
choice method found for `in' on 2 arguments
"""
GAP_IN = self.parent().eval(r'\in')
return GAP_IN(other, self).sage()
return bool(GAP_IN(other, self))

cpdef _type_number(self):
"""
Expand Down

0 comments on commit 1e78f80

Please sign in to comment.