update mypy to compile pyspec well with py 3.8.0, and minor mypy fix
This commit is contained in:
parent
40025c96dd
commit
7691e312c7
|
@ -82,7 +82,7 @@ def get_eth1_data(distance: uint64) -> Bytes32:
|
||||||
return hash(distance)
|
return hash(distance)
|
||||||
|
|
||||||
|
|
||||||
def hash(x: bytes) -> Bytes32:
|
def hash(x: bytes) -> Bytes32: # type: ignore
|
||||||
if x not in hash_cache:
|
if x not in hash_cache:
|
||||||
hash_cache[x] = Bytes32(_hash(x))
|
hash_cache[x] = Bytes32(_hash(x))
|
||||||
return hash_cache[x]
|
return hash_cache[x]
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
pytest>=4.4
|
pytest>=4.4
|
||||||
../config_helpers
|
../config_helpers
|
||||||
flake8==3.7.7
|
flake8==3.7.7
|
||||||
mypy==0.701
|
mypy==0.750
|
||||||
pytest-cov
|
pytest-cov
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
|
|
Loading…
Reference in New Issue