Skip to content

Commit 7187c10

Browse files
srittaumax-muoto
authored andcommitted
[jsonschema] Update to 4.23.* (python#12301)
1 parent ec9ccfc commit 7187c10

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

stubs/jsonschema/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "4.22.*"
1+
version = "4.23.*"
22
upstream_repository = "https://github.com/python-jsonschema/jsonschema"
33
requires = ["referencing"]
44
partial_stub = true

stubs/jsonschema/jsonschema/_format.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def is_time(instance: object) -> bool: ...
3939
def is_regex(instance: object) -> bool: ...
4040
def is_date(instance: object) -> bool: ...
4141
def is_draft3_time(instance: object) -> bool: ...
42-
def is_css_color_code(instance: object) -> bool: ...
4342
def is_css21_color(instance: object) -> bool: ...
4443
def is_json_pointer(instance: object) -> bool: ...
4544
def is_relative_json_pointer(instance: object) -> bool: ...

stubs/jsonschema/jsonschema/exceptions.pyi

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
from _typeshed import Incomplete, SupportsRichComparison
1+
from _typeshed import Incomplete, SupportsRichComparison, sentinel
22
from collections import deque
3-
from collections.abc import Callable, Container, Iterable, Iterator, MutableMapping, Sequence
3+
from collections.abc import Callable, Container, Iterable, Iterator, Mapping, MutableMapping, Sequence
4+
from typing import Any
45
from typing_extensions import Self, TypeAlias, deprecated
56

6-
from jsonschema import _utils, protocols
7-
from jsonschema._types import TypeChecker
7+
from ._types import TypeChecker
8+
from ._utils import Unset
9+
from .protocols import Validator
810

911
_RelevanceFuncType: TypeAlias = Callable[[ValidationError], SupportsRichComparison]
1012

@@ -19,24 +21,24 @@ class _Error(Exception):
1921
relative_schema_path: deque[str | int]
2022
context: list[ValidationError] | None
2123
cause: Exception | None
22-
validator: protocols.Validator | None
23-
validator_value: Incomplete
24-
instance: Incomplete
25-
schema: Incomplete
24+
validator: Validator | Unset
25+
validator_value: Any | Unset
26+
instance: Any | Unset
27+
schema: Mapping[str, Any] | bool | Unset
2628
parent: _Error | None
2729
def __init__(
2830
self,
2931
message: str,
30-
validator: _utils.Unset | None | protocols.Validator = ...,
31-
path: Sequence[str | int] = (),
32-
cause: Incomplete | None = None,
32+
validator: str | Unset = sentinel,
33+
path: Iterable[str | int] = (),
34+
cause: Exception | None = None,
3335
context: Sequence[ValidationError] = (),
34-
validator_value=...,
35-
instance=...,
36-
schema=...,
37-
schema_path: Sequence[str | int] = (),
36+
validator_value: Any | Unset = sentinel,
37+
instance: Any | Unset = sentinel,
38+
schema: Mapping[str, Any] | bool | Unset = sentinel,
39+
schema_path: Iterable[str | int] = (),
3840
parent: _Error | None = None,
39-
type_checker: _utils.Unset | TypeChecker = ...,
41+
type_checker: TypeChecker | Unset = sentinel,
4042
) -> None: ...
4143
@classmethod
4244
def create_from(cls, other: _Error) -> Self: ...

0 commit comments

Comments
 (0)