8000 [jsonschema] Add registry arg to Validator init by HansAarneLiblik · Pull Request #10731 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

[jsonschema] Add registry arg to Validator init #10731

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

Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Merge branch 'main' into update-jsonschema-stubs-add-registry
  • Loading branch information
AlexWaygood authored Sep 23, 2023
commit 9017fe82089dccda3dc3c6aa5a8b7c2c88287365
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.18.*"
version = "4.19.*"
upstream_repository = "https://github.com/python-jsonschema/jsonschema"
requires = ["referencing"]
partial_stub = true
Expand Down
19 changes: 10 additions & 9 deletions stubs/jsonschema/jsonschema/validators.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,19 @@ class _Validator:
TYPE_CHECKER: ClassVar[Incomplete]
FORMAT_CHECKER: ClassVar[Incomplete]
@staticmethod
def ID_OF(schema: _Schema) -> str: ...
schema: _Schema
def ID_OF(contents: Schema) -> URI | None: ...
schema: Schema
resolver: Incomplete
format_checker: Incomplete
format_checker: FormatChecker | None
evolve: Incomplete
def __init__(
self,
schema: _Schema,
resolver: Incomplete | None = ...,
format_checker: Incomplete | None = ...,
schema: Schema,
resolver: Incomplete | None = None,
format_checker: FormatChecker | None = None,
*,
registry: Incomplete | None = ...,
registry: SchemaRegistry = ...,
_resolver: Incomplete | None = None,
) -> None: ...
@classmethod
def check_schema(cls, schema: Schema, format_checker: FormatChecker | Unset = ...) -> None: ...
Expand All @@ -47,10 +48,10 @@ class _Validator:
def descend(
self,
instance,
schema: _Schema,
schema: Schema,
path: Incomplete | None = ...,
schema_path: Incomplete | None = ...,
resolver: Incomplete | None = ...,
resolver: Incomplete | None = None,
) -> Generator[Incomplete, None, None]: ...
def validate(self, *args, **kwargs) -> None: ...
def is_type(self, instance, type): ...
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0