Skip to content

Commit

Permalink
Allow Generators for vol.In
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Jul 19, 2024
1 parent dcaaf3d commit 90bc979
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion voluptuous/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,9 @@ class In(object):
"""Validate that a value is in a collection."""

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

0 comments on commit 90bc979

Please sign in to comment.