Skip to content

Commit b3804b5

Browse files
committed
fix dict typing errors for Python 3.8
1 parent 292d4bf commit b3804b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stac_fastapi/opensearch/stac_fastapi/opensearch/database_logic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ async def create_collection_index() -> None:
210210
"""
211211
client = AsyncSearchSettings().create_client
212212

213-
search_body: dict[str, Any] = {
213+
search_body: Dict[str, Any] = {
214214
"aliases": {COLLECTIONS_INDEX: {}},
215215
}
216216

@@ -240,7 +240,7 @@ async def create_item_index(collection_id: str):
240240
"""
241241
client = AsyncSearchSettings().create_client
242242
index_name = index_by_collection_id(collection_id)
243-
search_body: dict[str, Any] = {
243+
search_body: Dict[str, Any] = {
244244
"aliases": {index_name: {}},
245245
}
246246

0 commit comments

Comments
 (0)