Skip to content

Commit

Permalink
Fix circular import using absolute imports
Browse files Browse the repository at this point in the history
Signed-off-by: Shah, Karan <[email protected]>
  • Loading branch information
MasterSkepticista committed Jun 6, 2024
1 parent 555d8e3 commit cafb965
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions openfl/experimental/runtime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# SPDX-License-Identifier: Apache-2.0
""" openfl.experimental.runtime package Runtime class."""

from .federated_runtime import FederatedRuntime
from .local_runtime import LocalRuntime
from .runtime import Runtime

__all__ = ["FederatedRuntime", "LocalRuntime", "Runtime"]
from openfl.experimental.runtime.federated_runtime import FederatedRuntime
from openfl.experimental.runtime.local_runtime import LocalRuntime
from openfl.experimental.runtime.runtime import Runtime
2 changes: 1 addition & 1 deletion openfl/experimental/runtime/federated_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from typing import TYPE_CHECKING

from openfl.experimental.runtime import Runtime
from openfl.experimental.runtime.runtime import Runtime

if TYPE_CHECKING:
from openfl.experimental.interface import Aggregator
Expand Down
2 changes: 1 addition & 1 deletion openfl/experimental/runtime/local_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import ray

from openfl.experimental.runtime import Runtime
from openfl.experimental.runtime.runtime import Runtime

if TYPE_CHECKING:
from openfl.experimental.interface import Aggregator, Collaborator, FLSpec
Expand Down

0 comments on commit cafb965

Please sign in to comment.