From 4a52a71956a8d46fcb7294ac71734504bb09bcc2 Mon Sep 17 00:00:00 2001 From: S. Solomon Darnell Date: Fri, 28 Mar 2025 21:52:21 -0500 Subject: two version of R2R are here --- .../python3.12/site-packages/jsonschema/_typing.py | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .venv/lib/python3.12/site-packages/jsonschema/_typing.py (limited to '.venv/lib/python3.12/site-packages/jsonschema/_typing.py') diff --git a/.venv/lib/python3.12/site-packages/jsonschema/_typing.py b/.venv/lib/python3.12/site-packages/jsonschema/_typing.py new file mode 100644 index 00000000..d283dc48 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/jsonschema/_typing.py @@ -0,0 +1,28 @@ +""" +Some (initially private) typing helpers for jsonschema's types. +""" +from typing import Any, Callable, Iterable, Protocol, Tuple, Union + +import referencing.jsonschema + +from jsonschema.protocols import Validator + + +class SchemaKeywordValidator(Protocol): + def __call__( + self, + validator: Validator, + value: Any, + instance: Any, + schema: referencing.jsonschema.Schema, + ) -> None: + ... + + +id_of = Callable[[referencing.jsonschema.Schema], Union[str, None]] + + +ApplicableValidators = Callable[ + [referencing.jsonschema.Schema], + Iterable[Tuple[str, Any]], +] -- cgit v1.2.3