mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Bump jsonschema to 4.6.* (#8161)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
version = "4.4.*"
|
||||
version = "4.6.*"
|
||||
|
||||
@@ -10,6 +10,7 @@ class Validator(Protocol):
|
||||
META_SCHEMA: ClassVar[dict[Any, Any]]
|
||||
VALIDATORS: ClassVar[dict[Any, Any]]
|
||||
TYPE_CHECKER: ClassVar[TypeChecker]
|
||||
FORMAT_CHECKER: ClassVar[FormatChecker]
|
||||
schema: dict[Any, Any] | bool
|
||||
def __init__(
|
||||
self, schema: dict[Any, Any] | bool, resolver: RefResolver | None = ..., format_checker: FormatChecker | None = ...
|
||||
|
||||
@@ -12,7 +12,8 @@ _Schema: TypeAlias = Mapping[str, Any]
|
||||
class _Validator:
|
||||
VALIDATORS: ClassVar[dict[Any, Any]]
|
||||
META_SCHEMA: ClassVar[dict[Any, Any]]
|
||||
TYPE_CHECKER: Any
|
||||
TYPE_CHECKER: ClassVar[Any]
|
||||
FORMAT_CHECKER: ClassVar[Any]
|
||||
@staticmethod
|
||||
def ID_OF(schema: _Schema) -> str: ...
|
||||
schema: _Schema
|
||||
@@ -32,9 +33,17 @@ class _Validator:
|
||||
|
||||
def validates(version: str) -> Callable[..., Any]: ...
|
||||
def create(
|
||||
meta_schema, validators=..., version: Any | None = ..., type_checker=..., id_of=..., applicable_validators=...
|
||||
meta_schema,
|
||||
validators=...,
|
||||
version: Any | None = ...,
|
||||
type_checker=...,
|
||||
format_checker=...,
|
||||
id_of=...,
|
||||
applicable_validators=...,
|
||||
) -> type[_Validator]: ...
|
||||
def extend(validator, validators=..., version: Any | None = ..., type_checker: Any | None = ...): ...
|
||||
def extend(
|
||||
validator, validators=..., version: Any | None = ..., type_checker: Any | None = ..., format_checker: Any | None = ...
|
||||
): ...
|
||||
|
||||
# At runtime these are fields that are assigned the return values of create() calls.
|
||||
class Draft3Validator(_Validator): ...
|
||||
|
||||
Reference in New Issue
Block a user