disable locking for annotations
until I can find a better way to do it
This commit is contained in:
parent
08cf7ca4b1
commit
c23c391d83
@ -44,9 +44,9 @@ class AnnotatableImpl(Annotatable, metaclass=ABCMeta):
|
||||
'''
|
||||
@property
|
||||
def annotations(self) -> annotations_t:
|
||||
# TODO: Find a way to make sure the subclass implements Lockable without dealing with diamond inheritance or this extra hasattr
|
||||
if hasattr(self, 'is_locked') and self.is_locked():
|
||||
return MappingProxyType(self._annotations)
|
||||
# # TODO: Find a way to make sure the subclass implements Lockable without dealing with diamond inheritance or this extra hasattr
|
||||
# if hasattr(self, 'is_locked') and self.is_locked():
|
||||
# return MappingProxyType(self._annotations)
|
||||
return self._annotations
|
||||
|
||||
@annotations.setter
|
||||
|
Loading…
Reference in New Issue
Block a user