Skip to content

Commit 4eadc97

Browse files
committed
type checking for tokencredential
1 parent b42f162 commit 4eadc97

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

sdk/cosmos/azure-cosmos/azure/cosmos/aio/cosmos_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
"""Create, read, and delete databases in the Azure Cosmos DB SQL API service.
2323
"""
2424

25-
from typing import Any, Dict, Optional, Union, cast
25+
from typing import Any, Dict, Optional, Union, cast, TYPE_CHECKING
2626
from azure.core.async_paging import AsyncItemPaged
27-
from azure.core.credentials import TokenCredential
27+
if TYPE_CHECKING:
28+
from azure.core.credentials import TokenCredential
2829

2930
from azure.core.tracing.decorator_async import distributed_trace_async
3031
from azure.core.tracing.decorator import distributed_trace
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
azure-core>=1.23.0
1+
azure-core
22
azure-identity
33
-e ../../../tools/azure-sdk-tools
44
-e ../../../tools/azure-devtools

sdk/cosmos/azure-cosmos/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@
7171
packages=find_packages(exclude=exclude_packages),
7272
python_requires=">=3.6",
7373
install_requires=[
74-
'azure-core<2.0.0,>=1.23.0'
74+
'azure-core<2.0.0,>=1.2.2'
7575
],
7676
)

0 commit comments

Comments
 (0)