Skip to content

Commit

Permalink
Merge pull request #44 from 3mcloud/feature/is_in
Browse files Browse the repository at this point in the history
fix is_in condition
  • Loading branch information
jjf130 authored May 27, 2021
2 parents d521d7b + da49431 commit 2f669b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion falcano/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def eq(self, value: Any) -> 'Eq': # pylint: disable=invalid-name

def is_in(self, *values: Any) -> 'In':
''' Return a condition that the value is in a set of values '''
return Attr(self).is_in(*values)
return self.attr_fn()(self.attr_name).is_in(*values)

def exists(self) -> 'Exists':
'''Return a condition that this attribute exists'''
Expand Down

0 comments on commit 2f669b3

Please sign in to comment.