Skip to content

Commit a2a49e4

Browse files
committed
supprot for python version lesser than 3.10
1 parent 9baebae commit a2a49e4

File tree

1 file changed

+5
-3
lines changed
  • stac_fastapi/sfeos_helpers/stac_fastapi/sfeos_helpers/filter

1 file changed

+5
-3
lines changed

stac_fastapi/sfeos_helpers/stac_fastapi/sfeos_helpers/filter/client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import os
44
from collections import deque
5-
from typing import Any
5+
from typing import Any, Optional
66

77
import attr
88
from fastapi import Request
@@ -38,7 +38,9 @@ def _get_excluded_from_queryables() -> set[str]:
3838
return {field.strip() for field in excluded.split(",") if field.strip()}
3939

4040
async def get_queryables(
41-
self, collection_id: str | None = None, **kwargs
41+
self,
42+
collection_id: str | None = None,
43+
**kwargs: Any,
4244
) -> dict[str, Any]:
4345
"""Get the queryables available for the given collection_id.
4446
@@ -57,7 +59,7 @@ async def get_queryables(
5759
Returns:
5860
Dict[str, Any]: A dictionary containing the queryables for the given collection.
5961
"""
60-
request: Request | None = kwargs.get("request")
62+
request: Optional[Request] = kwargs.get("request") # noqa: UP045
6163
url_str = str(request.url) if request else ""
6264

6365
queryables: dict[str, Any] = {

0 commit comments

Comments
 (0)