Skip to content

Commit

Permalink
adds Annotation lazy import
Browse files Browse the repository at this point in the history
  • Loading branch information
BWMac committed Jan 17, 2025
1 parent 9b4a168 commit f567d4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapseclient/models/services/storable_entity_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f567d4c

Please sign in to comment.