Skip to content

Commit 22956ce

Browse files
committed
Fixing type annotations for THREAD_LOCAL_KEYS
1 parent 30e18d2 commit 22956ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws_lambda_powertools/logging/formatter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,10 @@ def _strip_none_records(records: Dict[str, Any]) -> Dict[str, Any]:
415415
RESERVED_FORMATTER_CUSTOM_KEYS: List[str] = inspect.getfullargspec(LambdaPowertoolsFormatter).args[1:]
416416

417417
# ContextVar for thread local keys
418-
THREAD_LOCAL_KEYS: ContextVar[dict[Any, Any]] = ContextVar("THREAD_LOCAL_KEYS", default={})
418+
THREAD_LOCAL_KEYS: ContextVar[dict[str, Any]] = ContextVar("THREAD_LOCAL_KEYS", default={})
419419

420420

421-
def _get_context() -> ContextVar[dict[Any, Any]]:
421+
def _get_context() -> ContextVar[dict[str, Any]]:
422422
return THREAD_LOCAL_KEYS
423423

424424

0 commit comments

Comments
 (0)