apppy-logger 0.1.0__py3-none-any.whl → 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of apppy-logger might be problematic. Click here for more details.

apppy/logger/parser.py CHANGED
@@ -1,5 +1,5 @@
1
1
  import logging
2
- from typing import Any, Optional
2
+ from typing import Any, Optional, cast
3
3
 
4
4
 
5
5
  class LogRecordParser:
@@ -38,7 +38,7 @@ class LogRecordParser:
38
38
  Parse state data from the given log record that is added via LoggingStorage.
39
39
  """
40
40
  if hasattr(log_record, "state") and isinstance(log_record.state, dict):
41
- return log_record.state
41
+ return cast(dict[str, Any], log_record.state)
42
42
 
43
43
  return {}
44
44
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apppy-logger
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: Python logger extensions for server development
5
5
  Project-URL: Homepage, https://github.com/spals/apppy
6
6
  Author: Tim Kral
@@ -2,8 +2,8 @@ apppy/logger/__init__.py,sha256=OLru2wZ06QHVyB82hjIcuncN13EfA69XV2hNTJAv1b8,2102
2
2
  apppy/logger/filter.py,sha256=2FTt_ADwc2phniY541_xKX1zR6K8BY3kCFRdJ5FEoBI,509
3
3
  apppy/logger/format.py,sha256=ocrFkYKvSgAsY4_RuiendI9c-4gLD_AMh4K49elPMzk,1759
4
4
  apppy/logger/format_unit_test.py,sha256=51Jhr8mzaFxvEC0tCdkUP5V-noefDI4fR0jH8FQSnBA,4411
5
- apppy/logger/parser.py,sha256=r6YBRa0YcgUrR3UKaKchukm6vXvTh_5LNQ1xwbSnWYQ,1870
5
+ apppy/logger/parser.py,sha256=QmGm7eaH3lORot8PbAB5Bee_tyHvgC8i80JL_3P4VRc,1898
6
6
  apppy/logger/storage.py,sha256=nHtM28Pu4MSXkofp6mch3XIWh7Y6ZYIAZLzE7f18kFc,2067
7
- apppy_logger-0.1.0.dist-info/METADATA,sha256=N7GMPhMWnpS8slphtyv_LREudyyKHlbMQxPReePpN8E,320
8
- apppy_logger-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- apppy_logger-0.1.0.dist-info/RECORD,,
7
+ apppy_logger-0.2.0.dist-info/METADATA,sha256=3AUEo4zUIcyt5OCvK0KeP0VdzIJAOfEw4PI8G8M4C9M,320
8
+ apppy_logger-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ apppy_logger-0.2.0.dist-info/RECORD,,