Skip to content

Commit

Permalink
Mypy.
Browse files Browse the repository at this point in the history
  • Loading branch information
fchirica committed Nov 15, 2024
1 parent 404f1c5 commit 9aad2f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chia/data_layer/data_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class DataStore:
"""A key/value store with the pairs being terminal nodes in a CLVM object tree."""

db_wrapper: DBWrapper2
recent_merkle_blobs: LRUCache
recent_merkle_blobs: LRUCache[bytes32, MerkleBlob]

@classmethod
@contextlib.asynccontextmanager
Expand All @@ -86,7 +86,7 @@ async def managed(
row_factory=aiosqlite.Row,
log_path=sql_log_path,
) as db_wrapper:
recent_merkle_blobs = LRUCache(capacity=128)
recent_merkle_blobs: LRUCache[bytes32, MerkleBlob] = LRUCache(capacity=128)
self = cls(db_wrapper=db_wrapper, recent_merkle_blobs=recent_merkle_blobs)

async with db_wrapper.writer() as writer:
Expand Down

0 comments on commit 9aad2f7

Please sign in to comment.