From 517a6dec980a8d19c5a5347e9ca174773742f540 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 1 Nov 2020 19:34:25 -0800 Subject: [PATCH] remove duplicate setattr definition already set by LockableImpl --- masque/pattern.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/masque/pattern.py b/masque/pattern.py index fd1b8de..ff3b8b5 100644 --- a/masque/pattern.py +++ b/masque/pattern.py @@ -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),