From 129bce02e2b1512f1807d00f631aa9ecbe4fa266 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 4 May 2022 14:30:53 +0200 Subject: [PATCH] Add fastjsonschema as a dependency --- mypy-stubs/fastjsonschema/__init__.py | 4 ++++ poetry.lock | 17 ++++++++++++++++- pyproject.toml | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 mypy-stubs/fastjsonschema/__init__.py diff --git a/mypy-stubs/fastjsonschema/__init__.py b/mypy-stubs/fastjsonschema/__init__.py new file mode 100644 index 0000000..7f7a003 --- /dev/null +++ b/mypy-stubs/fastjsonschema/__init__.py @@ -0,0 +1,4 @@ +from typing import Any, Callable, Dict + + +def compile(definition: Dict[str, Any], handlers: Dict[str, Any] = ..., formats: Dict[str, Any] = ..., use_default: bool = ...) -> Callable[[Any], None]: ... diff --git a/poetry.lock b/poetry.lock index 30b24ef..407367c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -116,6 +116,17 @@ category = "main" optional = false python-versions = "*" +[[package]] +name = "fastjsonschema" +version = "2.15.3" +description = "Fastest Python implementation of JSON schema" +category = "main" +optional = false +python-versions = "*" + +[package.extras] +devel = ["colorama", "jsonschema", "json-spec", "pylint", "pytest", "pytest-benchmark", "pytest-cache", "validictory"] + [[package]] name = "iniconfig" version = "1.1.1" @@ -338,7 +349,7 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" [metadata] lock-version = "1.1" python-versions = "^3.10" -content-hash = "41a3272de2f68a28d894165195674e402266cdbc9179b3b94c6e5d9bda3b895d" +content-hash = "97d56a47bf36410214965fb0aa60352f05af7eb2e2d0b51f1919a42e05f677df" [metadata.files] astroid = [ @@ -440,6 +451,10 @@ dill = [ ed25519 = [ {file = "ed25519-1.5.tar.gz", hash = "sha256:02053ee019ceef0df97294be2d4d5a8fc120fc86e81e08bec1245fc0f9403358"}, ] +fastjsonschema = [ + {file = "fastjsonschema-2.15.3-py3-none-any.whl", hash = "sha256:ddb0b1d8243e6e3abb822bd14e447a89f4ab7439342912d590444831fa00b6a0"}, + {file = "fastjsonschema-2.15.3.tar.gz", hash = "sha256:0a572f0836962d844c1fc435e200b2e4f4677e4e6611a2e3bdd01ba697c275ec"}, +] iniconfig = [ {file = "iniconfig-1.1.1-py2.py3-none-any.whl", hash = "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3"}, {file = "iniconfig-1.1.1.tar.gz", hash = "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"}, diff --git a/pyproject.toml b/pyproject.toml index d51e4b4..9de6e0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,7 @@ authors = ["Gergely Polonkai "] python = "^3.10" ed25519 = "^1.5" bip39 = "^0.0.2" +fastjsonschema = "^2.15.3" [tool.poetry.dev-dependencies] pytest = "^7.1.1"