Skip to content

Commit

Permalink
Use typing.Container for In validator
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Jun 25, 2024
1 parent ca4006a commit 24060e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion voluptuous/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ class In(object):
"""Validate that a value is in a collection."""

def __init__(
self, container: typing.Iterable, msg: typing.Optional[str] = None
self, container: typing.Container, msg: typing.Optional[str] = None
) -> None:
self.container = container
self.msg = msg
Expand Down

0 comments on commit 24060e7

Please sign in to comment.