diff options
author | F. Eugene Aumson <feuGeneA@users.noreply.github.com> | 2018-11-14 23:41:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 23:41:52 +0800 |
commit | e1d64def2017ced0aba599b989ad42a51fdd46fe (patch) | |
tree | 3f1a0c101c6486998ffbc96e082f9772fad93f82 /python-packages/order_utils/stubs | |
parent | fe1b7f15e8531615a54e46581cb734e635d3c755 (diff) | |
download | dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.tar dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.tar.gz dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.tar.bz2 dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.tar.lz dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.tar.xz dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.tar.zst dexon-sol-tools-e1d64def2017ced0aba599b989ad42a51fdd46fe.zip |
feat(order_utils.py): sign_hash() (#1254)
Also moved is_valid_signature() into main package module, for
simplicity.
Also consolidated a handul of in-line pylint disable directives into the
.pylintrc config file.
Diffstat (limited to 'python-packages/order_utils/stubs')
3 files changed, 6 insertions, 2 deletions
diff --git a/python-packages/order_utils/stubs/web3/__init__.pyi b/python-packages/order_utils/stubs/web3/__init__.pyi index fcecc7434..b2af95475 100644 --- a/python-packages/order_utils/stubs/web3/__init__.pyi +++ b/python-packages/order_utils/stubs/web3/__init__.pyi @@ -1,12 +1,14 @@ from typing import Dict, Optional, Union from web3.utils import datatypes +from web3.providers.base import BaseProvider class Web3: - class HTTPProvider: ... + class HTTPProvider(BaseProvider): + ... - def __init__(self, provider: HTTPProvider) -> None: ... + def __init__(self, provider: BaseProvider) -> None: ... @staticmethod def sha3( diff --git a/python-packages/order_utils/stubs/web3/providers/__init__.pyi b/python-packages/order_utils/stubs/web3/providers/__init__.pyi new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/python-packages/order_utils/stubs/web3/providers/__init__.pyi diff --git a/python-packages/order_utils/stubs/web3/providers/base.pyi b/python-packages/order_utils/stubs/web3/providers/base.pyi new file mode 100644 index 000000000..82ca9e3da --- /dev/null +++ b/python-packages/order_utils/stubs/web3/providers/base.pyi @@ -0,0 +1,2 @@ +class BaseProvider: + ... |