Skip to content

Commit

Permalink
Don't enforce type for unused description attribute (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Jun 26, 2024
1 parent 66df7be commit 4cde166
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions voluptuous/schema_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ def __init__(
self,
schema_: Schemable,
msg: typing.Optional[str] = None,
description: typing.Optional[str] = None,
description: typing.Any | None = None,
) -> None:
self.schema = schema_
self._schema = Schema(schema_)
Expand Down Expand Up @@ -1094,7 +1094,7 @@ def __init__(
schema: Schemable,
msg: typing.Optional[str] = None,
default: typing.Any = UNDEFINED,
description: typing.Optional[str] = None,
description: typing.Any | None = None,
) -> None:
super(Optional, self).__init__(schema, msg=msg, description=description)
self.default = default_factory(default)
Expand Down Expand Up @@ -1141,7 +1141,7 @@ def __init__(
schema: Schemable,
group_of_exclusion: str,
msg: typing.Optional[str] = None,
description: typing.Optional[str] = None,
description: typing.Any | None = None,
) -> None:
super(Exclusive, self).__init__(schema, msg=msg, description=description)
self.group_of_exclusion = group_of_exclusion
Expand Down Expand Up @@ -1194,7 +1194,7 @@ def __init__(
schema: Schemable,
group_of_inclusion: str,
msg: typing.Optional[str] = None,
description: typing.Optional[str] = None,
description: typing.Any | None = None,
default: typing.Any = UNDEFINED,
) -> None:
super(Inclusive, self).__init__(
Expand Down Expand Up @@ -1223,7 +1223,7 @@ def __init__(
schema: Schemable,
msg: typing.Optional[str] = None,
default: typing.Any = UNDEFINED,
description: typing.Optional[str] = None,
description: typing.Any | None = None,
) -> None:
super(Required, self).__init__(schema, msg=msg, description=description)
self.default = default_factory(default)
Expand All @@ -1248,7 +1248,7 @@ def __init__(
self,
schema_: Schemable,
msg: typing.Optional[str] = None,
description: typing.Optional[str] = None,
description: typing.Any | None = None,
) -> None:
super().__init__(schema_, msg, description)
self.__hash__ = cache(lambda: object.__hash__(self)) # type: ignore[method-assign]
Expand Down

0 comments on commit 4cde166

Please sign in to comment.