Skip to content

Commit fe2c338

Browse files
committed
Appease lint
1 parent aabfe04 commit fe2c338

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

eth/db/chain.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
GENESIS_PARENT_HASH,
3636
)
3737
from eth.exceptions import (
38+
CanonicalHeadNotFound,
3839
HeaderNotFound,
3940
ReceiptNotFound,
4041
TransactionNotFound,

eth/db/header.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import functools
2-
from typing import Iterable, Tuple
2+
from typing import cast, Iterable, Tuple
33

44
import rlp
55

@@ -89,7 +89,7 @@ def _get_canonical_head(cls, db: DatabaseAPI) -> BlockHeaderAPI:
8989
@classmethod
9090
def _get_canonical_head_hash(cls, db: DatabaseAPI) -> Hash32:
9191
try:
92-
return db[SchemaV1.make_canonical_head_hash_lookup_key()]
92+
return cast(Hash32, db[SchemaV1.make_canonical_head_hash_lookup_key()])
9393
except KeyError:
9494
raise CanonicalHeadNotFound("No canonical head set for this chain")
9595

0 commit comments

Comments
 (0)