mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 14:00:12 +08:00
Update jsonschema.protocols.Validator.__init__ (#14327)
This commit is contained in:
@@ -3,10 +3,10 @@ from collections.abc import Iterator, Mapping, Sequence
|
||||
from typing import ClassVar, Protocol
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
import referencing.jsonschema
|
||||
from jsonschema._format import FormatChecker
|
||||
from jsonschema._types import TypeChecker
|
||||
from jsonschema.exceptions import ValidationError
|
||||
from jsonschema.validators import RefResolver
|
||||
|
||||
_JsonParameter: TypeAlias = str | int | float | bool | None | Mapping[str, _JsonParameter] | Sequence[_JsonParameter]
|
||||
|
||||
@@ -19,7 +19,7 @@ class Validator(Protocol):
|
||||
def __init__(
|
||||
self,
|
||||
schema: dict[Incomplete, Incomplete] | bool,
|
||||
resolver: RefResolver | None = None,
|
||||
registry: referencing.jsonschema.SchemaRegistry,
|
||||
format_checker: FormatChecker | None = None,
|
||||
) -> None: ...
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user