Skip to content

Commit

Permalink
[Core] Fix circular import (Azure#38776)
Browse files Browse the repository at this point in the history
An import used for typing is now guarded behing the TYPE_CHECKING flag
from the typing module.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
  • Loading branch information
pvaneck authored Dec 7, 2024
1 parent 4a9a64c commit 1109616
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdk/core/azure-core/azure/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@
Generic,
Mapping,
List,
TYPE_CHECKING,
)
from azure.core.tracing import AbstractSpan
from ._azure_clouds import AzureClouds

if TYPE_CHECKING:
from azure.core.tracing import AbstractSpan

ValidInputType = TypeVar("ValidInputType")
ValueType = TypeVar("ValueType")

Expand Down

0 comments on commit 1109616

Please sign in to comment.