Skip to content
Snippets Groups Projects
Commit 42cfbeb2 authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Use a better copy method.

parent 3675301d
No related branches found
No related tags found
No related merge requests found
Pipeline #
"""Classes related to JSON-encoded instance data."""
import copy
from datetime import datetime
from typing import Any, Callable, List, Tuple
from .constants import YangsonException
......@@ -27,6 +28,9 @@ class StructuredValue:
"""
self.last_modified = ts if ts else datetime.now()
def copy(self):
return copy.copy(self)
def __eq__(self, val: "StructuredValue") -> bool:
"""Is the receiver equal to `val`?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment