Skip to content

Commit

Permalink
type checking for tokencredential
Browse files Browse the repository at this point in the history
  • Loading branch information
simorenoh committed May 3, 2022
1 parent b42f162 commit 4eadc97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions sdk/cosmos/azure-cosmos/azure/cosmos/aio/cosmos_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
azure-core>=1.23.0
azure-core
azure-identity
-e ../../../tools/azure-sdk-tools
-e ../../../tools/azure-devtools
2 changes: 1 addition & 1 deletion sdk/cosmos/azure-cosmos/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
],
)

0 comments on commit 4eadc97

Please sign in to comment.