From 21eedbec001fbc78fecd43fe2fe7ebaa142bca18 Mon Sep 17 00:00:00 2001 From: AAriam <80158628+AAriam@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:57:42 +0100 Subject: [PATCH] Release version 0.0.0.dev41 --- pyproject.toml | 6 +++--- requirements.txt | 4 ++-- src/pyserials/property_dict.py | 8 ++++++++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4de8baa..08b080a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ namespaces = true # ----------------------------------------- Project Metadata ------------------------------------- # [project] -version = "0.0.0.dev40" +version = "0.0.0.dev41" name = "PySerials" dependencies = [ "jsonschema >= 4.21.0, < 5", @@ -26,8 +26,8 @@ dependencies = [ "ruamel.yaml >= 0.17.32, < 0.18", # https://yaml.readthedocs.io/en/stable/ "ruamel.yaml.string >= 0.1.1, < 1", "tomlkit >= 0.11.8, < 0.12", # https://tomlkit.readthedocs.io/en/stable/, - "MDit == 0.0.0.dev37", - "ExceptionMan == 0.0.0.dev37", + "MDit == 0.0.0.dev38", + "ExceptionMan == 0.0.0.dev38", "ProtocolMan == 0.0.0.dev2", ] requires-python = ">=3.10" diff --git a/requirements.txt b/requirements.txt index 8b94a4b..52fb317 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,6 @@ jsonpath-ng >= 1.6.1, < 2 ruamel.yaml >= 0.17.32, < 0.18 ruamel.yaml.string >= 0.1.1, < 1 tomlkit >= 0.11.8, < 0.12 -MDit == 0.0.0.dev37 -ExceptionMan == 0.0.0.dev37 +MDit == 0.0.0.dev38 +ExceptionMan == 0.0.0.dev38 ProtocolMan == 0.0.0.dev2 \ No newline at end of file diff --git a/src/pyserials/property_dict.py b/src/pyserials/property_dict.py index 2d53bab..d6fa22d 100644 --- a/src/pyserials/property_dict.py +++ b/src/pyserials/property_dict.py @@ -1,3 +1,6 @@ +import copy as _copy + + class PropertyDict: def __init__(self, data: dict | None): @@ -50,3 +53,8 @@ def __eq__(self, other): def __ne__(self, other): return self._data != other._data + + def __deepcopy__(self, memo): + # Use `deepcopy` on the internal dictionary to copy its contents + copied_data = _copy.deepcopy(self._data, memo) + return PropertyDict(copied_data)