From 7f15101585af2533620075b24cbf376a943ac8f1 Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Thu, 17 Oct 2024 13:31:45 -0700 Subject: [PATCH] fix circular reference --- fiftyone/operators/store/service.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fiftyone/operators/store/service.py b/fiftyone/operators/store/service.py index 6ccbd41f4f..1f35afe584 100644 --- a/fiftyone/operators/store/service.py +++ b/fiftyone/operators/store/service.py @@ -8,9 +8,7 @@ import logging from typing import Optional, List -from fiftyone.factory.repo_factory import RepositoryFactory from fiftyone.operators.store.models import StoreDocument, KeyDocument -from fiftyone.factory.repos.execution_store import ExecutionStoreRepo logger = logging.getLogger(__name__) @@ -18,7 +16,12 @@ class ExecutionStoreService: """Service for managing execution store operations.""" - def __init__(self, repo: Optional[ExecutionStoreRepo] = None): + def __init__(self, repo: Optional["ExecutionStoreRepo"] = None): + from fiftyone.factory.repo_factory import ( + RepositoryFactory, + ExecutionStoreRepo, + ) + if repo is None: repo = RepositoryFactory.execution_store_repo()