mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
[jsonschema] Update to 4.23.* (#12301)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
version = "4.22.*"
|
||||
version = "4.23.*"
|
||||
upstream_repository = "https://github.com/python-jsonschema/jsonschema"
|
||||
requires = ["referencing"]
|
||||
partial_stub = true
|
||||
|
||||
@@ -39,7 +39,6 @@ def is_time(instance: object) -> bool: ...
|
||||
def is_regex(instance: object) -> bool: ...
|
||||
def is_date(instance: object) -> bool: ...
|
||||
def is_draft3_time(instance: object) -> bool: ...
|
||||
def is_css_color_code(instance: object) -> bool: ...
|
||||
def is_css21_color(instance: object) -> bool: ...
|
||||
def is_json_pointer(instance: object) -> bool: ...
|
||||
def is_relative_json_pointer(instance: object) -> bool: ...
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
from _typeshed import Incomplete, SupportsRichComparison
|
||||
from _typeshed import Incomplete, SupportsRichComparison, sentinel
|
||||
from collections import deque
|
||||
from collections.abc import Callable, Container, Iterable, Iterator, MutableMapping, Sequence
|
||||
from collections.abc import Callable, Container, Iterable, Iterator, Mapping, MutableMapping, Sequence
|
||||
from typing import Any
|
||||
from typing_extensions import Self, TypeAlias, deprecated
|
||||
|
||||
from jsonschema import _utils, protocols
|
||||
from jsonschema._types import TypeChecker
|
||||
from ._types import TypeChecker
|
||||
from ._utils import Unset
|
||||
from .protocols import Validator
|
||||
|
||||
_RelevanceFuncType: TypeAlias = Callable[[ValidationError], SupportsRichComparison]
|
||||
|
||||
@@ -19,24 +21,24 @@ class _Error(Exception):
|
||||
relative_schema_path: deque[str | int]
|
||||
context: list[ValidationError] | None
|
||||
cause: Exception | None
|
||||
validator: protocols.Validator | None
|
||||
validator_value: Incomplete
|
||||
instance: Incomplete
|
||||
schema: Incomplete
|
||||
validator: Validator | Unset
|
||||
validator_value: Any | Unset
|
||||
instance: Any | Unset
|
||||
schema: Mapping[str, Any] | bool | Unset
|
||||
parent: _Error | None
|
||||
def __init__(
|
||||
self,
|
||||
message: str,
|
||||
validator: _utils.Unset | None | protocols.Validator = ...,
|
||||
path: Sequence[str | int] = (),
|
||||
cause: Incomplete | None = None,
|
||||
validator: str | Unset = sentinel,
|
||||
path: Iterable[str | int] = (),
|
||||
cause: Exception | None = None,
|
||||
context: Sequence[ValidationError] = (),
|
||||
validator_value=...,
|
||||
instance=...,
|
||||
schema=...,
|
||||
schema_path: Sequence[str | int] = (),
|
||||
validator_value: Any | Unset = sentinel,
|
||||
instance: Any | Unset = sentinel,
|
||||
schema: Mapping[str, Any] | bool | Unset = sentinel,
|
||||
schema_path: Iterable[str | int] = (),
|
||||
parent: _Error | None = None,
|
||||
type_checker: _utils.Unset | TypeChecker = ...,
|
||||
type_checker: TypeChecker | Unset = sentinel,
|
||||
) -> None: ...
|
||||
@classmethod
|
||||
def create_from(cls, other: _Error) -> Self: ...
|
||||
|
||||
Reference in New Issue
Block a user