aboutsummaryrefslogtreecommitdiffstats
path: root/python-packages/order_utils/stubs
diff options
context:
space:
mode:
authorF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-11-15 01:56:31 +0800
committerGitHub <noreply@github.com>2018-11-15 01:56:31 +0800
commitb961cb195299ce6a091ae692ec815b52f6b89300 (patch)
treea6b97b981b04b22a1296fa55e8b7f77e59eb5ba0 /python-packages/order_utils/stubs
parente1d64def2017ced0aba599b989ad42a51fdd46fe (diff)
downloaddexon-0x-contracts-b961cb195299ce6a091ae692ec815b52f6b89300.tar.gz
dexon-0x-contracts-b961cb195299ce6a091ae692ec815b52f6b89300.tar.zst
dexon-0x-contracts-b961cb195299ce6a091ae692ec815b52f6b89300.zip
fix(order_utils.py): validate order w/json schema (#1260)
Diffstat (limited to 'python-packages/order_utils/stubs')
-rw-r--r--python-packages/order_utils/stubs/jsonschema/__init__.pyi5
-rw-r--r--python-packages/order_utils/stubs/jsonschema/exceptions.pyi0
2 files changed, 5 insertions, 0 deletions
diff --git a/python-packages/order_utils/stubs/jsonschema/__init__.pyi b/python-packages/order_utils/stubs/jsonschema/__init__.pyi
new file mode 100644
index 000000000..762b58b22
--- /dev/null
+++ b/python-packages/order_utils/stubs/jsonschema/__init__.pyi
@@ -0,0 +1,5 @@
+from typing import Any, Dict
+
+class RefResolver: pass
+
+def validate(instance: Any, schema: Dict, cls=None, *args, **kwargs) -> None: pass
diff --git a/python-packages/order_utils/stubs/jsonschema/exceptions.pyi b/python-packages/order_utils/stubs/jsonschema/exceptions.pyi
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/python-packages/order_utils/stubs/jsonschema/exceptions.pyi