readonly also prevents deletion

This commit is contained in:
Jakob Ketterl
2021-03-20 00:54:45 +01:00
parent c50473fea5
commit c58ebfa657
2 changed files with 11 additions and 0 deletions

View File

@ -264,6 +264,9 @@ class PropertyReadOnly(PropertyDelegator):
def __setitem__(self, key, value):
raise PropertyWriteError(key)
def __delitem__(self, key):
raise PropertyWriteError(key)
class PropertyStack(PropertyManager):
def __init__(self):