[jsonschema] Fix type _Error.validator (#15353)

This commit is contained in:
Shantanu
2026-02-01 08:35:16 -08:00
committed by GitHub
parent 98965cf6fa
commit c01356380f
+1 -2
View File
@@ -6,7 +6,6 @@ from typing_extensions import Self, TypeAlias, deprecated
from ._types import TypeChecker
from ._utils import Unset
from .protocols import Validator
_RelevanceFuncType: TypeAlias = Callable[[ValidationError], SupportsRichComparison]
@@ -21,7 +20,7 @@ class _Error(Exception):
relative_schema_path: deque[str | int]
context: list[ValidationError]
cause: Exception | None
validator: Validator | Unset
validator: str | Unset
validator_value: Any | Unset
instance: Any | Unset
schema: Mapping[str, Any] | bool | Unset