refactor(typing): update handler signatures to use Dict and Any for improved type hinting
This commit is contained in:
@@ -14,6 +14,7 @@ import asyncio
|
||||
import os
|
||||
import datetime
|
||||
from datetime import timedelta
|
||||
from typing import Dict, Any
|
||||
import pytz
|
||||
import backoff
|
||||
import time
|
||||
@@ -945,14 +946,14 @@ config = {
|
||||
}
|
||||
|
||||
|
||||
async def handler(input_data: dict, ctx: FlowContext):
|
||||
async def handler(input_data: Dict[str, Any], ctx: FlowContext) -> None:
|
||||
"""Main event handler for calendar sync."""
|
||||
start_time = time.time()
|
||||
|
||||
kuerzel = input_data.get('kuerzel')
|
||||
if not kuerzel:
|
||||
log_operation('error', "No kuerzel provided in event", context=ctx)
|
||||
return {'status': 400, 'body': {'error': 'No kuerzel provided'}}
|
||||
return
|
||||
|
||||
log_operation('info', f"Starting calendar sync for employee {kuerzel}", context=ctx)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user