Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jsonschema] Update to 4.23.* #12301

Merged
merged 2 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/jsonschema/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "4.22.*"
version = "4.23.*"
upstream_repository = "https://github.com/python-jsonschema/jsonschema"
requires = ["referencing"]
partial_stub = true
Expand Down
1 change: 0 additions & 1 deletion stubs/jsonschema/jsonschema/_format.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
34 changes: 18 additions & 16 deletions stubs/jsonschema/jsonschema/exceptions.pyi
Original file line number Diff line number Diff line change
@@ -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]

Expand All @@ -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: ...
Expand Down