From 4a610d38c8bc895683fbb3b81afb7ac836840904 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Tue, 25 Jun 2024 23:54:46 +0200 Subject: [PATCH] Use typing.Container for In validator (#518) --- voluptuous/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voluptuous/validators.py b/voluptuous/validators.py index 89eed0f..cd00278 100644 --- a/voluptuous/validators.py +++ b/voluptuous/validators.py @@ -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