Skip to content

Commit cd7511d

Browse files
committed
Fix circular dependency error on import hsfs
1 parent d841aa4 commit cd7511d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

python/hopsworks/project.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from __future__ import annotations
1717

1818
import json
19+
from typing import TYPE_CHECKING
1920

2021
import humps
2122
from hopsworks import client, constants, util
@@ -29,7 +30,10 @@
2930
kafka_api,
3031
opensearch_api,
3132
)
32-
from hsfs import feature_store
33+
34+
35+
if TYPE_CHECKING:
36+
from hsfs import feature_store
3337

3438

3539
class Project:

0 commit comments

Comments
 (0)