mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-08 22:36:18 +08:00
[jsonschema] Fix type _Error.validator (#15353)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user