Skip to content

Commit

Permalink
fix other unknown type
Browse files Browse the repository at this point in the history
  • Loading branch information
CAPITAINMARVEL committed Oct 10, 2024
1 parent 58edc8f commit 18a8a42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion beanie/odm/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, capacity: int, expiration_time: timedelta):
self.expiration_time: timedelta = expiration_time
self.cache: collections.OrderedDict = collections.OrderedDict()

def get(self, key) -> Optional[CachedItem]:
def get(self, key: Any) -> Optional[CachedItem]:
try:
item: CachedItem = self.cache.pop(key)
if (
Expand Down
2 changes: 1 addition & 1 deletion beanie/odm/interfaces/aggregation_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def aggregate(
self,
aggregation_pipeline,
projection_model=None,
session=None,
session: Optional[AsyncIOMotorClientSession] = None,
ignore_cache: bool = False,
): ...

Expand Down
6 changes: 3 additions & 3 deletions beanie/odm/interfaces/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def update(
*args: Mapping[str, Any],
session: Optional[AsyncIOMotorClientSession] = None,
bulk_writer: Optional[BulkWriter] = None,
**kwargs,
**kwargs: Any,
):
return self

Expand All @@ -33,7 +33,7 @@ def set(
expression: Dict[Union[ExpressionField, str, Any], Any],
session: Optional[AsyncIOMotorClientSession] = None,
bulk_writer: Optional[BulkWriter] = None,
**kwargs,
**kwargs: Any,
):
"""
Set values
Expand Down Expand Up @@ -66,7 +66,7 @@ def current_date(
expression: Dict[Union[datetime, ExpressionField, str], Any],
session: Optional[AsyncIOMotorClientSession] = None,
bulk_writer: Optional[BulkWriter] = None,
**kwargs,
**kwargs: Any,
):
"""
Set current date
Expand Down

0 comments on commit 18a8a42

Please sign in to comment.