Skip to content

Commit e07fb88

Browse files
committed
Add mk_ function type hints
1 parent 4f29e35 commit e07fb88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stac_fastapi/core/stac_fastapi/core/database_logic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
from typing import Any, List, Optional, Protocol
2+
from typing import Any, Dict, List, Optional, Protocol
33

44
from stac_fastapi.types.stac import Item
55

@@ -173,7 +173,7 @@ def indices(collection_ids: Optional[List[str]]) -> str:
173173
return ",".join([index_alias_by_collection_id(c) for c in collection_ids])
174174

175175

176-
def mk_item_id(item_id: str, collection_id: str):
176+
def mk_item_id(item_id: str, collection_id: str) -> str:
177177
"""Create the document id for an Item in Elasticsearch.
178178
179179
Args:
@@ -186,7 +186,7 @@ def mk_item_id(item_id: str, collection_id: str):
186186
return f"{item_id}|{collection_id}"
187187

188188

189-
def mk_actions(collection_id: str, processed_items: List[Item]):
189+
def mk_actions(collection_id: str, processed_items: List[Item]) -> List[Dict[str, Any]]:
190190
"""Create Elasticsearch bulk actions for a list of processed items.
191191
192192
Args:

0 commit comments

Comments
 (0)