|
|
|
@ -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
|
|
|
|
|