Skip to content

Commit

Permalink
Fix type 'int' not iterable (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokeyish authored Jun 12, 2024
1 parent fa12326 commit f31f53c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion box/box.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ def __contains__(self, item):
except BoxError:
return False
else:
return children in self[first_item]
it = self[first_item]
return isinstance(it, Iterable) and children in it

def keys(self, dotted: Union[bool] = False):
if not dotted:
Expand Down

0 comments on commit f31f53c

Please sign in to comment.