-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
[area] base classesChanges to or creation of new base classesChanges to or creation of new base classes[maintainer] good first issueGood entry-level issue for newcomersGood entry-level issue for newcomers[priority] lowestVery low urgencyVery low urgency[scope] bugBug report or fix (major.minor.PATCH)Bug report or fix (major.minor.PATCH)
Description
Our current copy implementation looks like this:
def __copy__(self) -> NewBase:
"""Return a copy of the object."""
temp = self.to_dict(skip=['unique_name'])
new_obj = self.__class__.from_dict(temp)
return new_objHence we skip the unique_name. If the user set a custom unique_name, it would be odd if the copied object was suddenly using a default unique_name, hence I suggest appending a number to custom unique_names when copying.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[area] base classesChanges to or creation of new base classesChanges to or creation of new base classes[maintainer] good first issueGood entry-level issue for newcomersGood entry-level issue for newcomers[priority] lowestVery low urgencyVery low urgency[scope] bugBug report or fix (major.minor.PATCH)Bug report or fix (major.minor.PATCH)