diff --git a/sdk/cosmos/azure-cosmos/azure/cosmos/aio/cosmos_client.py b/sdk/cosmos/azure-cosmos/azure/cosmos/aio/cosmos_client.py index 937440b38732..58fa95cabaf3 100644 --- a/sdk/cosmos/azure-cosmos/azure/cosmos/aio/cosmos_client.py +++ b/sdk/cosmos/azure-cosmos/azure/cosmos/aio/cosmos_client.py @@ -22,9 +22,10 @@ """Create, read, and delete databases in the Azure Cosmos DB SQL API service. """ -from typing import Any, Dict, Optional, Union, cast +from typing import Any, Dict, Optional, Union, cast, TYPE_CHECKING from azure.core.async_paging import AsyncItemPaged -from azure.core.credentials import TokenCredential +if TYPE_CHECKING: + from azure.core.credentials import TokenCredential from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.tracing.decorator import distributed_trace diff --git a/sdk/cosmos/azure-cosmos/dev_requirements.txt b/sdk/cosmos/azure-cosmos/dev_requirements.txt index 3f2bedfc82c3..e6fcb54061af 100644 --- a/sdk/cosmos/azure-cosmos/dev_requirements.txt +++ b/sdk/cosmos/azure-cosmos/dev_requirements.txt @@ -1,4 +1,4 @@ -azure-core>=1.23.0 +azure-core azure-identity -e ../../../tools/azure-sdk-tools -e ../../../tools/azure-devtools \ No newline at end of file diff --git a/sdk/cosmos/azure-cosmos/setup.py b/sdk/cosmos/azure-cosmos/setup.py index 2ce020e9c43e..f206cdb487a8 100644 --- a/sdk/cosmos/azure-cosmos/setup.py +++ b/sdk/cosmos/azure-cosmos/setup.py @@ -71,6 +71,6 @@ packages=find_packages(exclude=exclude_packages), python_requires=">=3.6", install_requires=[ - 'azure-core<2.0.0,>=1.23.0' + 'azure-core<2.0.0,>=1.2.2' ], )