Skip to content

Commit 7671826

Browse files
authored
update type hints to reflect actual document body (#21593)
1 parent 591845d commit 7671826

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sdk/cosmos/azure-cosmos/azure/cosmos/container.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def read_item(
160160
post_trigger_include=None, # type: Optional[str]
161161
**kwargs # type: Any
162162
):
163-
# type: (...) -> Dict[str, str]
163+
# type: (...) -> Dict[str, Any]
164164
"""Get the item identified by `item`.
165165
166166
:param item: The ID (name) or dict representing item to retrieve.
@@ -376,7 +376,7 @@ def replace_item(
376376
post_trigger_include=None, # type: Optional[str]
377377
**kwargs # type: Any
378378
):
379-
# type: (...) -> Dict[str, str]
379+
# type: (...) -> Dict[str, Any]
380380
"""Replaces the specified item if it exists in the container.
381381
382382
If the item does not already exist in the container, an exception is raised.
@@ -424,7 +424,7 @@ def upsert_item(
424424
post_trigger_include=None, # type: Optional[str]
425425
**kwargs # type: Any
426426
):
427-
# type: (...) -> Dict[str, str]
427+
# type: (...) -> Dict[str, Any]
428428
"""Insert or update the specified item.
429429
430430
If the item already exists in the container, it is replaced. If the item
@@ -474,7 +474,7 @@ def create_item(
474474
indexing_directive=None, # type: Optional[Any]
475475
**kwargs # type: Any
476476
):
477-
# type: (...) -> Dict[str, str]
477+
# type: (...) -> Dict[str, Any]
478478
"""Create an item in the container.
479479
480480
To update or replace an existing item, use the
@@ -695,7 +695,7 @@ def query_conflicts(
695695

696696
@distributed_trace
697697
def get_conflict(self, conflict, partition_key, **kwargs):
698-
# type: (Union[str, Dict[str, Any]], Any, Any) -> Dict[str, str]
698+
# type: (Union[str, Dict[str, Any]], Any, Any) -> Dict[str, Any]
699699
"""Get the conflict identified by `conflict`.
700700
701701
:param conflict: The ID (name) or dict representing the conflict to retrieve.

0 commit comments

Comments
 (0)