added handler typing

This commit is contained in:
Khalim Conn-Kowlessar 2026-02-25 16:20:04 +00:00
parent 2e5ae82d3b
commit bf865811c0

View file

@ -99,7 +99,7 @@ def process_export(payload: ExportRequest, session: Session) -> Dict[Union[str,
# Lambda Handler
# ============================================================
def handler(event: dict, context: Optional[Any]) -> Mapping[str, int | str]:
def handler(event: Mapping[str, Any], context: Optional[Any]) -> Mapping[str, int | str]:
"""
Lambda event should have the following structure:
1) task id - unique identifier for the export task (optional, can be used for tracking/logging)