Skip to content

Commit

Permalink
Add Any type to defaults (alecthomas#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
elupus authored Jun 16, 2024
1 parent ed7ca99 commit 9451b61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions voluptuous/schema_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ def __init__(
self,
schema: Schemable,
msg: typing.Optional[str] = None,
default=UNDEFINED,
default: typing.Any = UNDEFINED,
description: typing.Optional[str] = None,
) -> None:
super(Optional, self).__init__(schema, msg=msg, description=description)
Expand Down Expand Up @@ -1195,7 +1195,7 @@ def __init__(
group_of_inclusion: str,
msg: typing.Optional[str] = None,
description: typing.Optional[str] = None,
default=UNDEFINED,
default: typing.Any = UNDEFINED,
) -> None:
super(Inclusive, self).__init__(
schema, msg=msg, default=default, description=description
Expand All @@ -1222,7 +1222,7 @@ def __init__(
self,
schema: Schemable,
msg: typing.Optional[str] = None,
default=UNDEFINED,
default: typing.Any = UNDEFINED,
description: typing.Optional[str] = None,
) -> None:
super(Required, self).__init__(schema, msg=msg, description=description)
Expand Down

0 comments on commit 9451b61

Please sign in to comment.