Skip to content

Commit 3bc2141

Browse files
committed
Fix circular import
1 parent f381100 commit 3bc2141

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ansys/dpf/core/core.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@
2727
import logging
2828
import os
2929
from pathlib import Path, PurePosixPath, PureWindowsPath
30+
from typing import TYPE_CHECKING
3031
import warnings
3132
import weakref
3233

33-
from ansys.dpf.core import AnyServerType, errors, misc, server as server_module
34+
from ansys.dpf.core import errors, misc, server as server_module
35+
36+
if TYPE_CHECKING: # pragma: noqa
37+
from ansys.dpf.core import AnyServerType
3438
from ansys.dpf.core.check_version import server_meet_version, version_requires
3539
from ansys.dpf.core.runtime_config import (
3640
RuntimeClientConfig,

0 commit comments

Comments
 (0)