Skip to content

Commit 59c75ac

Browse files
committed
ruff
1 parent d515c04 commit 59c75ac

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

chia/consensus/consensus_store_protocol.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations
22

3-
from collections.abc import Collection
4-
from typing import AsyncIterator, Optional, Protocol
3+
from collections.abc import AsyncIterator, Collection
54
from types import TracebackType
5+
from typing import Optional, Protocol
66

77
from chia_rs import BlockRecord, FullBlock, SubEpochChallengeSegment, SubEpochSummary
88
from chia_rs.sized_bytes import bytes32

chia/full_node/consensus_store_sqlite3.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from __future__ import annotations
22

33
import dataclasses
4-
from collections.abc import Collection
4+
from collections.abc import AsyncIterator, Collection
55
from contextlib import AbstractAsyncContextManager
6-
from typing import Any, AsyncIterator, Optional, TYPE_CHECKING
76
from types import TracebackType
7+
from typing import TYPE_CHECKING, Any, Optional
88

99
from chia_rs import BlockRecord, FullBlock, SubEpochChallengeSegment, SubEpochSummary
1010
from chia_rs.sized_bytes import bytes32
@@ -74,7 +74,7 @@ async def create(
7474
block_store: BlockStore,
7575
coin_store: CoinStore,
7676
height_map: BlockHeightMap,
77-
) -> "ConsensusStoreSQLite3":
77+
) -> ConsensusStoreSQLite3:
7878
"""Create a new ConsensusStore instance from existing sub-stores.
7979
8080
This factory does not create sub-stores. Construct BlockStore, CoinStore,
@@ -212,6 +212,7 @@ def rollback_cache_block(self, header_hash: bytes32) -> None:
212212

213213
if TYPE_CHECKING:
214214
from typing import cast
215+
215216
from chia.consensus.consensus_store_protocol import ConsensusStoreProtocol
216217

217218
def _protocol_check(o: ConsensusStoreProtocol) -> None: ...

0 commit comments

Comments
 (0)