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
|
@property
|
||||||
def annotations(self) -> annotations_t:
|
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
|
# # 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():
|
# if hasattr(self, 'is_locked') and self.is_locked():
|
||||||
return MappingProxyType(self._annotations)
|
# return MappingProxyType(self._annotations)
|
||||||
return self._annotations
|
return self._annotations
|
||||||
|
|
||||||
@annotations.setter
|
@annotations.setter
|
||||||
|
Loading…
Reference in New Issue
Block a user