Skip to content

Commit a7a55f8

Browse files
authored
Allow Generators for vol.In (#523)
1 parent dcaaf3d commit a7a55f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

voluptuous/validators.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,9 @@ class In(object):
812812
"""Validate that a value is in a collection."""
813813

814814
def __init__(
815-
self, container: typing.Container, msg: typing.Optional[str] = None
815+
self,
816+
container: typing.Container | typing.Iterable,
817+
msg: typing.Optional[str] = None,
816818
) -> None:
817819
self.container = container
818820
self.msg = msg

0 commit comments

Comments
 (0)