remove duplicate setattr definition

already set by LockableImpl
This commit is contained in:
Jan Petykiewicz 2020-11-01 19:34:25 -08:00
parent 2bc03cbbf4
commit 517a6dec98

View File

@ -91,11 +91,6 @@ class Pattern(LockableImpl, AnnotatableImpl, metaclass=AutoSlots):
self.name = name
self.set_locked(locked)
def __setattr__(self, name, value):
if self.locked and name != 'locked':
raise PatternLockedError()
object.__setattr__(self, name, value)
def __copy__(self, memo: Dict = None) -> 'Pattern':
return Pattern(name=self.name,
shapes=copy.deepcopy(self.shapes),