Skip to content

Commit

Permalink
Use Schemable as validator type
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Jun 25, 2024
1 parent 85cd874 commit 8b22bf7
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, 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 8b22bf7

Please sign in to comment.