Skip to content

Commit

Permalink
Remove Maybe validator typing (#517)
Browse files Browse the repository at this point in the history
* Remove Maybe validator typing

* Use Schemable as validator type
  • Loading branch information
cdce8p authored Jun 25, 2024
1 parent 4a610d3 commit 66df7be
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 @@ -599,7 +599,7 @@ def PathExists(v):
raise PathInvalid("Not a Path")


def Maybe(validator: typing.Callable, 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
Expand Down

0 comments on commit 66df7be

Please sign in to comment.