Update voluptuous to 0.15.2 (#120631)

* Update voluptuous to 0.15.1

* Fix typing issues

* Add type ignores for json result type

* Update voluptuous to 0.15.2

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Marc Mueller 2024-07-02 21:57:09 +02:00 committed by GitHub
parent 0d0ca22103
commit 0e52d149e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 13 additions and 15 deletions

View file

@ -112,9 +112,7 @@ class UnknownStep(FlowError):
"""Unknown step specified."""
# ignore misc is required as vol.Invalid is not typed
# mypy error: Class cannot subclass "Invalid" (has type "Any")
class InvalidData(vol.Invalid): # type: ignore[misc]
class InvalidData(vol.Invalid):
"""Invalid data provided."""
def __init__(
@ -386,7 +384,7 @@ class FlowManager(abc.ABC, Generic[_FlowResultT, _HandlerT]):
) is not None and user_input is not None:
data_schema = cast(vol.Schema, data_schema)
try:
user_input = data_schema(user_input) # type: ignore[operator]
user_input = data_schema(user_input)
except vol.Invalid as ex:
raised_errors = [ex]
if isinstance(ex, vol.MultipleInvalid):