Skip to content

Commit

Permalink
Use typing.Container for In validator (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Jun 25, 2024
1 parent 65f736c commit 4a610d3
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 @@ -812,7 +812,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 4a610d3

Please sign in to comment.