From 2ce289aa99b481cda67018642b12392d5f52c949 Mon Sep 17 00:00:00 2001 From: Chris Modzelewski Date: Fri, 4 Aug 2023 18:19:31 -0400 Subject: [PATCH 1/2] Fixed bugs in .to_dict() and .to_json(). Closes #74 and #75. --- CHANGES.rst | 2 ++ highcharts_core/metaclasses.py | 27 ++++++++++++--- tests/test_metaclasses.py | 63 +++++++++++++++++++++++++++++++++- 3 files changed, 86 insertions(+), 6 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 19ef09ca..a433a73a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,8 @@ Release 1.3.0 ========================================= +* **BUGFIX:** Fixed incorrect serialization of datetime and Pandas ``Timestamp`` objects in ``.to_dict()`` and ``.to_json()`` (#74). +* **BUGFIX:** Fixed incorrect serialization of ``EnforcedNull`` in ``.to_dict()`` and ``.to_json()`` (#75). * **ENHANCEMENT:** Added ``__repr__()`` method for Highcharts Core for Python classes (#76). * **ENHANCEMENT:** Added ``__str__()`` method with special handling for difficult-to-read classes (#76). * **ENHANCEMENT:** Added ``Chart.get_script_tags()`` to retrieve Javascript ``