Skip to content

Commit

Permalink
Remove Maybe validator typing
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Jun 25, 2024
1 parent ca4006a commit 85cd874
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 @@ -594,7 +594,7 @@ def PathExists(v):
raise PathInvalid("Not a Path")


def Maybe(validator: typing.Callable, msg: typing.Optional[str] = None):
def Maybe(validator, 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 85cd874

Please sign in to comment.