diff --git a/voluptuous/validators.py b/voluptuous/validators.py index d4c3383..db96e37 100644 --- a/voluptuous/validators.py +++ b/voluptuous/validators.py @@ -594,7 +594,7 @@ def PathExists(v): raise PathInvalid("Not a Path") -def Maybe(validator, msg: typing.Optional[str] = None): +def Maybe(validator: Schemable, msg: typing.Optional[str] = None): """Validate that the object matches given validator or is None. :raises Invalid: If the value does not match the given validator and is not