remove duplicate setattr definition
already set by LockableImpl
This commit is contained in:
parent
2bc03cbbf4
commit
517a6dec98
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user