Skip to content

Commit 4fd0bdd

Browse files
committed
pyright fixes (ethash.py)
1 parent ef9f068 commit 4fd0bdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ethereum/ethash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
[mem-hard]: https://en.wikipedia.org/wiki/Memory-hard_function
2727
"""
2828

29-
from typing import Callable, Tuple, Union
29+
from typing import Callable, List, Tuple, Union
3030

3131
from ethereum_types.bytes import Bytes8
3232
from ethereum_types.numeric import U32, Uint, ulen
@@ -380,7 +380,7 @@ def hashimoto(
380380

381381
mix = fnv_hash(mix, new_data)
382382

383-
compressed_mix = []
383+
compressed_mix: List[U32] = []
384384
for i in range(0, len(mix), 4):
385385
compressed_mix.append(
386386
fnv(fnv(fnv(mix[i], mix[i + 1]), mix[i + 2]), mix[i + 3])

0 commit comments

Comments
 (0)