|
1 | 1 | from __future__ import annotations
|
2 | 2 |
|
3 | 3 | import dataclasses
|
4 |
| -from collections.abc import Collection |
| 4 | +from collections.abc import AsyncIterator, Collection |
5 | 5 | from contextlib import AbstractAsyncContextManager
|
6 |
| -from typing import Any, AsyncIterator, Optional, TYPE_CHECKING |
7 | 6 | from types import TracebackType
|
| 7 | +from typing import TYPE_CHECKING, Any, Optional |
8 | 8 |
|
9 | 9 | from chia_rs import BlockRecord, FullBlock, SubEpochChallengeSegment, SubEpochSummary
|
10 | 10 | from chia_rs.sized_bytes import bytes32
|
@@ -74,7 +74,7 @@ async def create(
|
74 | 74 | block_store: BlockStore,
|
75 | 75 | coin_store: CoinStore,
|
76 | 76 | height_map: BlockHeightMap,
|
77 |
| - ) -> "ConsensusStoreSQLite3": |
| 77 | + ) -> ConsensusStoreSQLite3: |
78 | 78 | """Create a new ConsensusStore instance from existing sub-stores.
|
79 | 79 |
|
80 | 80 | This factory does not create sub-stores. Construct BlockStore, CoinStore,
|
@@ -212,6 +212,7 @@ def rollback_cache_block(self, header_hash: bytes32) -> None:
|
212 | 212 |
|
213 | 213 | if TYPE_CHECKING:
|
214 | 214 | from typing import cast
|
| 215 | + |
215 | 216 | from chia.consensus.consensus_store_protocol import ConsensusStoreProtocol
|
216 | 217 |
|
217 | 218 | def _protocol_check(o: ConsensusStoreProtocol) -> None: ...
|
|
0 commit comments