Skip to content

Commit 867896c

Browse files
committed
mypy
1 parent 4e8c24f commit 867896c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chia/full_node/consensus_store_sqlite3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async def create(
8787
)
8888

8989
# Async context manager yielding a writer for atomic writes
90-
async def __aenter__(self):
90+
async def __aenter__(self) -> ConsensusStoreSQLite3Writer:
9191
# Re-entrant async context manager:
9292
# Begin a transaction only at the outermost level. CoinStore shares the same DB.
9393
if self._txn_depth == 0:
@@ -172,7 +172,7 @@ async def get_coins_removed_at_height(self, height: uint32) -> list[CoinRecord]:
172172
return await self.coin_store.get_coins_removed_at_height(height)
173173

174174
def get_block_heights_in_main_chain(self) -> AsyncIterator[int]:
175-
async def gen():
175+
async def gen() -> AsyncIterator[int]:
176176
async with self.block_store.transaction() as conn:
177177
async with conn.execute("SELECT height, in_main_chain FROM full_blocks") as cursor:
178178
async for row in cursor:

0 commit comments

Comments
 (0)