Skip to content

Commit

Permalink
Type schema attribute as Any (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Jun 26, 2024
1 parent 4cde166 commit 16163aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions voluptuous/schema_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def __init__(
- Any value other than the above defaults to
:const:`~voluptuous.PREVENT_EXTRA`
"""
self.schema = schema
self.schema: typing.Any = schema
self.required = required
self.extra = int(extra) # ensure the value is an integer
self._compiled = self._compile(schema)
Expand Down Expand Up @@ -1034,7 +1034,7 @@ def __init__(
msg: typing.Optional[str] = None,
description: typing.Any | None = None,
) -> None:
self.schema = schema_
self.schema: typing.Any = schema_
self._schema = Schema(schema_)
self.msg = msg
self.description = description
Expand Down

0 comments on commit 16163aa

Please sign in to comment.