Skip to content

Commit 09df67b

Browse files
author
nazarfil
committed
add client
1 parent 5b64d22 commit 09df67b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

openhexa/sdk/workspaces/current_workspace.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from dataclasses import fields, make_dataclass
88
from warnings import warn
99

10-
from openhexa.cli.api import OpenHexaClient
1110
from openhexa.utils import stringcase
1211

1312
from ...cli.graphql.graphql_client import GetCountriesWorkspaceCountries
@@ -64,6 +63,9 @@ def slug(self) -> str:
6463
@property
6564
def countries(self) -> list[GetCountriesWorkspaceCountries]:
6665
"""The countries of the workspace."""
66+
67+
from openhexa.cli.api import OpenHexaClient
68+
6769
try:
6870
return OpenHexaClient().get_countries(workspace_slug=self.slug).workspace.countries
6971
except KeyError:

0 commit comments

Comments
 (0)