@@ -57,7 +57,7 @@ def append_thread_local_keys(self, **additional_keys) -> None:
57
57
def get_current_keys (self ) -> dict [str , Any ]:
58
58
return {}
59
59
60
- def get_current_thread_keys (self ) -> Dict [str , Any ]:
60
+ def get_current_thread_keys (self ) -> dict [str , Any ]:
61
61
return {}
62
62
63
63
def remove_keys (self , keys : Iterable [str ]) -> None :
@@ -256,7 +256,7 @@ def append_thread_local_keys(self, **additional_keys) -> None:
256
256
def get_current_keys (self ) -> dict [str , Any ]:
257
257
return self .log_format
258
258
259
- def get_current_thread_keys (self ) -> Dict [str , Any ]:
259
+ def get_current_thread_keys (self ) -> dict [str , Any ]:
260
260
return _get_context ().get ()
261
261
262
262
def remove_keys (self , keys : Iterable [str ]) -> None :
@@ -371,7 +371,7 @@ def _extract_log_keys(self, log_record: logging.LogRecord) -> dict[str, Any]:
371
371
record_dict ["asctime" ] = self .formatTime (record = log_record )
372
372
extras = {k : v for k , v in record_dict .items () if k not in RESERVED_LOG_ATTRS }
373
373
374
- formatted_log : Dict [str , Any ] = {}
374
+ formatted_log : dict [str , Any ] = {}
375
375
376
376
# Iterate over a default or existing log structure
377
377
# then replace any std log attribute e.g. '%(level)s' to 'INFO', '%(process)d to '4773'
@@ -428,7 +428,7 @@ def clear_context_keys() -> None:
428
428
_get_context ().set ({})
429
429
430
430
431
- def set_context_keys (** kwargs : Dict [str , Any ]) -> None :
431
+ def set_context_keys (** kwargs : dict [str , Any ]) -> None :
432
432
context = _get_context ()
433
433
context .set ({** context .get (), ** kwargs })
434
434
0 commit comments