Skip to content

Commit

Permalink
chore: fix syntax for python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarreau committed Dec 17, 2024
1 parent 78719d6 commit 84634e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Union, cast
from typing import List, Optional, Union, cast

from forestadmin.agent_toolkit.utils.context import User
from forestadmin.datasource_toolkit.decorators.collection_decorator import CollectionDecorator
Expand Down Expand Up @@ -41,7 +41,7 @@ async def _refine_filter(
return _filter

async def aggregate(
self, caller: User, filter_: Filter | None, aggregation: Aggregation, limit: int | None = None
self, caller: User, filter_: Union[Filter, None], aggregation: Aggregation, limit: Optional[int] = None
) -> List[AggregateResult]:
replaced = {}

Expand Down

0 comments on commit 84634e8

Please sign in to comment.