|
2 | 2 | import re |
3 | 3 | import warnings |
4 | 4 | from collections.abc import Callable, Iterable |
5 | | -from copy import deepcopy |
6 | 5 | from dataclasses import dataclass |
7 | 6 | from functools import cached_property |
8 | 7 | from typing import TYPE_CHECKING, Any, TypeVar, Union, cast |
@@ -73,23 +72,6 @@ def _resolve_odxlinks(self, odxlinks: OdxLinkDatabase) -> None: |
73 | 72 | def _resolve_snrefs(self, context: SnRefContext) -> None: |
74 | 73 | super()._resolve_snrefs(context) |
75 | 74 |
|
76 | | - def __deepcopy__(self, memo: dict[int, Any]) -> Any: |
77 | | - """Create a deep copy of the hierarchy element |
78 | | -
|
79 | | - Note that the copied diagnostic layer is not fully |
80 | | - initialized, so `_finalize_init()` should to be called on it |
81 | | - before it can be used normally. |
82 | | - """ |
83 | | - |
84 | | - new_he = super().__deepcopy__(memo) |
85 | | - |
86 | | - # note that the self.hierarchy_element_raw object is *not* |
87 | | - # copied at this place because the attribute points to the |
88 | | - # same object as self.diag_layer_raw. |
89 | | - new_he.hierarchy_element_raw = deepcopy(self.hierarchy_element_raw) |
90 | | - |
91 | | - return new_he |
92 | | - |
93 | 75 | def _finalize_init(self, database: "Database", odxlinks: OdxLinkDatabase) -> None: |
94 | 76 | """This method deals with everything inheritance related and |
95 | 77 | -- after the final set of objects covered by the diagnostic |
|
0 commit comments