fix: resolve linting errors after dependency updates (#634)

This commit is contained in:
Jens
2025-10-12 14:45:59 +02:00
committed by GitHub
parent f2f139617b
commit a2745c03b2
3 changed files with 9 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-ArtifactOfProjectHomePage: https://github.com/Second-Hand-Friends/kleinanzeigen-bot/
from gettext import gettext as _
from typing import Any, cast
from typing import Any, Literal, cast
from pydantic import BaseModel, ValidationError
from pydantic_core import InitErrorDetails
@@ -23,6 +23,7 @@ class ContextualModel(BaseModel):
obj:Any,
*,
strict:bool | None = None,
extra:Literal["allow", "ignore", "forbid"] | None = None,
from_attributes:bool | None = None,
context:Any | None = None,
by_alias:bool | None = None,
@@ -36,6 +37,7 @@ class ContextualModel(BaseModel):
return super().model_validate(
obj,
strict = strict,
extra = extra,
from_attributes = from_attributes,
context = context,
by_alias = by_alias,