Skip to content

Commit 09cffef

Browse files
authored
Update jsonschema.protocols.Validator.__init__ (#14327)
1 parent e91e2fd commit 09cffef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/jsonschema/jsonschema/protocols.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ from collections.abc import Iterator, Mapping, Sequence
33
from typing import ClassVar, Protocol
44
from typing_extensions import TypeAlias
55

6+
import referencing.jsonschema
67
from jsonschema._format import FormatChecker
78
from jsonschema._types import TypeChecker
89
from jsonschema.exceptions import ValidationError
9-
from jsonschema.validators import RefResolver
1010

1111
_JsonParameter: TypeAlias = str | int | float | bool | None | Mapping[str, _JsonParameter] | Sequence[_JsonParameter]
1212

@@ -19,7 +19,7 @@ class Validator(Protocol):
1919
def __init__(
2020
self,
2121
schema: dict[Incomplete, Incomplete] | bool,
22-
resolver: RefResolver | None = None,
22+
registry: referencing.jsonschema.SchemaRegistry,
2323
format_checker: FormatChecker | None = None,
2424
) -> None: ...
2525
@classmethod

0 commit comments

Comments
 (0)