fix copy method of Attached

a copy of 'Attached' must also copy the basecls

Change-Id: Ia80cc458b241cb1f224f4c24f0241ed1d4ec1060
This commit is contained in:
zolliker 2023-01-24 08:22:58 +01:00
parent 9f653b4e6f
commit 725820fafd

View File

@ -843,3 +843,6 @@ class Attached(Property):
return super().__get__(obj, owner)
# return the module (called after startup)
return obj.attachedModules.get(self.name) # return None if not given
def copy(self):
return Attached(self.basecls, self.description, self.mandatory)