From f567d4cade462d2fc17dd2c6800714ab40dbec5a Mon Sep 17 00:00:00 2001 From: bwmac Date: Fri, 17 Jan 2025 15:17:11 -0500 Subject: [PATCH] adds Annotation lazy import --- synapseclient/models/services/storable_entity_components.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/synapseclient/models/services/storable_entity_components.py b/synapseclient/models/services/storable_entity_components.py index 9f5d52c05..8eafa5739 100644 --- a/synapseclient/models/services/storable_entity_components.py +++ b/synapseclient/models/services/storable_entity_components.py @@ -6,7 +6,7 @@ from synapseclient.core.exceptions import SynapseError if TYPE_CHECKING: - from synapseclient.models import Annotations, File, Folder, Project, Table + from synapseclient.models import File, Folder, Project, Table class FailureStrategy(Enum): @@ -242,6 +242,8 @@ async def _store_activity_and_annotations( or last_persistent_instance.annotations != root_resource.annotations ) ): + from synapseclient.models import Annotations + result = await Annotations( id=root_resource.id, etag=root_resource.etag,