Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit f4cdc79

Browse files
committed
Remove unnecessary type: ignore
1 parent 852b330 commit f4cdc79

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

eth/tools/mining.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1+
from eth.abc import (
2+
BlockAPI,
3+
VirtualMachineAPI,
4+
)
15
from eth.consensus import (
26
pow,
37
)
48

5-
from eth.rlp.blocks import (
6-
BaseBlock,
7-
)
8-
99

10-
class POWMiningMixin:
10+
class POWMiningMixin(VirtualMachineAPI):
1111
"""
1212
A VM that does POW mining as well. Should be used only in tests, when we
1313
need to programatically populate a ChainDB.
1414
"""
15-
def finalize_block(self, block: BaseBlock) -> BaseBlock:
16-
block = super().finalize_block(block) # type: ignore
15+
def finalize_block(self, block: BlockAPI) -> BlockAPI:
16+
block = super().finalize_block(block)
1717
nonce, mix_hash = pow.mine_pow_nonce(
1818
block.number, block.header.mining_hash, block.header.difficulty)
1919
return block.copy(header=block.header.copy(nonce=nonce, mix_hash=mix_hash))

0 commit comments

Comments
 (0)