Skip to content

Commit

Permalink
Add support for tuple matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
aranega committed Nov 30, 2023
1 parent 987ec06 commit 706d43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iguala/matchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def as_matcher(obj):
return LiteralMatcher(obj)
if obj is Ellipsis:
return ListWildcardMatcher("")
if isinstance(obj, list):
if isinstance(obj, (list, tuple)):
return SequenceMatcher(obj)
if isinstance(obj, dict):
return DictMatcher(obj)
Expand Down

0 comments on commit 706d43b

Please sign in to comment.