Skip to content

Commit a236489

Browse files
committed
Adding eth-typing dependency and enabling type hiting
* Fixes first part of ethereum#69 TODO: Add all missing type hints
1 parent 5cd74f8 commit a236489

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
install_requires=[
1919
"eth-hash>=0.1.0,<1.0.0",
2020
"eth-utils>=1.3.0,<2.0.0",
21+
"eth-typing>=2.0.0,<3",
2122
"rlp>=0.4.7,<2.0.0",
2223
],
2324
license="MIT",
2425
zip_safe=False,
2526
keywords='ethereum blockchain evm trie merkle',
2627
packages=find_packages(exclude=["tests", "tests.*"]),
28+
package_data={'trie': ['py.typed']},
2729
classifiers=[
2830
'Development Status :: 2 - Pre-Alpha',
2931
'Intended Audience :: Developers',

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ basepython =
2323
[testenv:lint]
2424
basepython=python
2525
deps=flake8
26-
commands=flake8 {toxinidir}/trie {toxinidir}/tests
26+
commands=
27+
flake8 {toxinidir}/trie {toxinidir}/tests
28+
mypy --follow-imports=silent --warn-unused-ignores --ignore-missing-imports --no-strict-optional --check-untyped-defs --disallow-incomplete-defs --disallow-untyped-defs --disallow-any-generics -p py-trie

trie/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)