Skip to content

Commit

Permalink
convert all annotations like dict[str, Any] to Dict[str, Any].
Browse files Browse the repository at this point in the history
  • Loading branch information
DaVinciDz authored and fracek committed Jun 8, 2023
1 parent 50661bf commit 75de267
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/apibara/indexer/storage.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
from contextlib import contextmanager
from typing import Any, Generic, Iterable, Iterator, Optional, TypeVar
from typing import Any, Dict, Generic, Iterable, Iterator, Optional, TypeVar

from pymongo import MongoClient
from pymongo.client_session import ClientSession
Expand All @@ -10,10 +10,10 @@
from apibara.indexer.configuration import IndexerConfiguration
from apibara.protocol.proto.stream_pb2 import Cursor

Document = dict[str, Any]
DocumentFilter = dict[str, Any]
Update = dict[str, Any]
Projection = dict[str, any]
Document = Dict[str, Any]
DocumentFilter = Dict[str, Any]
Update = Dict[str, Any]
Projection = Dict[str, Any]

Filter = TypeVar("Filter")

Expand Down Expand Up @@ -169,7 +169,7 @@ async def find(
self,
collection: str,
filter: DocumentFilter,
sort: Optional[dict[str, int]] = None,
sort: Optional[Dict[str, int]] = None,
projection: Optional[Projection] = None,
skip: int = 0,
limit: int = 0,
Expand Down

0 comments on commit 75de267

Please sign in to comment.