2222"""Classes and enums for documents in the Azure Cosmos database service.
2323"""
2424
25- from typing import Optional , TYPE_CHECKING , Union
25+ from typing import Optional , TYPE_CHECKING , Union , Any
2626
2727from typing_extensions import Literal , TypedDict
2828
@@ -60,7 +60,8 @@ class DatabaseAccount: # pylint: disable=too-many-instance-attributes
6060 is not guaranteed to be real time.
6161 :ivar ConsistencyPolicy:
6262 UserConsistencyPolicy settings.
63- :vartype ConsistencyPolicy: Dict[str, Union[str, int]]
63+ :vartype ConsistencyPolicy:
64+ dict[str, Any]
6465 :ivar boolean EnableMultipleWritableLocations:
6566 Flag on the azure Cosmos account that indicates if writes can take
6667 place in multiple locations.
@@ -74,7 +75,7 @@ def __init__(self) -> None:
7475 self .ConsumedDocumentStorageInMB : int = 0
7576 self .ReservedDocumentStorageInMB : int = 0
7677 self .ProvisionedDocumentStorageInMB : int = 0
77- self .ConsistencyPolicy : Optional [UserConsistencyPolicy ] = None
78+ self .ConsistencyPolicy : Optional [dict [ str , Any ] ] = None
7879 self ._WritableLocations : list [dict [str , str ]] = []
7980 self ._ReadableLocations : list [dict [str , str ]] = []
8081 self ._EnableMultipleWritableLocations = False
0 commit comments