Skip to content

Commit 1109616

Browse files
authored
[Core] Fix circular import (Azure#38776)
An import used for typing is now guarded behing the TYPE_CHECKING flag from the typing module. Signed-off-by: Paul Van Eck <[email protected]>
1 parent 4a9a64c commit 1109616

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdk/core/azure-core/azure/core/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@
4343
Generic,
4444
Mapping,
4545
List,
46+
TYPE_CHECKING,
4647
)
47-
from azure.core.tracing import AbstractSpan
4848
from ._azure_clouds import AzureClouds
4949

50+
if TYPE_CHECKING:
51+
from azure.core.tracing import AbstractSpan
52+
5053
ValidInputType = TypeVar("ValidInputType")
5154
ValueType = TypeVar("ValueType")
5255

0 commit comments

Comments
 (0)