From 56af5b539268a61841c7dd4659fd4800b27430ca Mon Sep 17 00:00:00 2001 From: Hans Aarne Liblik Date: Tue, 19 Sep 2023 09:59:57 +0300 Subject: [PATCH 1/3] [jsonschema] Add registry arg to Validator init --- stubs/jsonschema/jsonschema/validators.pyi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stubs/jsonschema/jsonschema/validators.pyi b/stubs/jsonschema/jsonschema/validators.pyi index 47ace89da529..3c0a84e1c557 100644 --- a/stubs/jsonschema/jsonschema/validators.pyi +++ b/stubs/jsonschema/jsonschema/validators.pyi @@ -29,7 +29,13 @@ class _Validator: resolver: Incomplete format_checker: Incomplete evolve: Incomplete - def __init__(self, schema: _Schema, resolver: Incomplete | None = ..., format_checker: Incomplete | None = ...) -> None: ... + def __init__( + self, + schema: _Schema, + resolver: Incomplete | None = ..., + format_checker: Incomplete | None = ..., + registry: Incomplete | None = ..., + ) -> None: ... @classmethod def check_schema(cls, schema: _Schema, format_checker: FormatChecker | Unset = ...) -> None: ... def iter_errors(self, instance, _schema: _Schema | None = ...) -> Generator[Incomplete, None, None]: ... From 6c4023b3fd5be9f7601bb6ea14d244ab7dbaaba7 Mon Sep 17 00:00:00 2001 From: Hans Aarne Liblik Date: Tue, 19 Sep 2023 10:06:30 +0300 Subject: [PATCH 2/3] [jsonschema] Update version --- stubs/jsonschema/METADATA.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/jsonschema/METADATA.toml b/stubs/jsonschema/METADATA.toml index 8586b7fa003c..71a6dd67a40a 100644 --- a/stubs/jsonschema/METADATA.toml +++ b/stubs/jsonschema/METADATA.toml @@ -1,4 +1,4 @@ -version = "4.17.*" +version = "4.19.*" upstream_repository = "https://github.com/python-jsonschema/jsonschema" partial_stub = true From 75a6bb1c7f6de891b2d2eb41a27d7fc757070586 Mon Sep 17 00:00:00 2001 From: Hans Aarne Liblik Date: Tue, 19 Sep 2023 10:47:44 +0300 Subject: [PATCH 3/3] [jsonschema] Downgrade version & add type updates --- stubs/jsonschema/METADATA.toml | 2 +- stubs/jsonschema/jsonschema/validators.pyi | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/stubs/jsonschema/METADATA.toml b/stubs/jsonschema/METADATA.toml index 71a6dd67a40a..e802b960f126 100644 --- a/stubs/jsonschema/METADATA.toml +++ b/stubs/jsonschema/METADATA.toml @@ -1,4 +1,4 @@ -version = "4.19.*" +version = "4.18.*" upstream_repository = "https://github.com/python-jsonschema/jsonschema" partial_stub = true diff --git a/stubs/jsonschema/jsonschema/validators.pyi b/stubs/jsonschema/jsonschema/validators.pyi index 3c0a84e1c557..7a8f0324910c 100644 --- a/stubs/jsonschema/jsonschema/validators.pyi +++ b/stubs/jsonschema/jsonschema/validators.pyi @@ -34,13 +34,19 @@ class _Validator: schema: _Schema, resolver: Incomplete | None = ..., format_checker: Incomplete | None = ..., + *, registry: Incomplete | None = ..., ) -> None: ... @classmethod def check_schema(cls, schema: _Schema, format_checker: FormatChecker | Unset = ...) -> None: ... def iter_errors(self, instance, _schema: _Schema | None = ...) -> Generator[Incomplete, None, None]: ... def descend( - self, instance, schema: _Schema, path: Incomplete | None = ..., schema_path: Incomplete | None = ... + self, + instance, + schema: _Schema, + path: Incomplete | None = ..., + schema_path: Incomplete | None = ..., + resolver: Incomplete | None = ..., ) -> Generator[Incomplete, None, None]: ... def validate(self, *args, **kwargs) -> None: ... def is_type(self, instance, type): ...