Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PartitionKey is not optional
  • Loading branch information
annatisch authored Feb 13, 2024
commit e52023b9ee306ce137f6c031a1b0c28207f36a2e
4 changes: 2 additions & 2 deletions sdk/cosmos/azure-cosmos/azure/cosmos/aio/_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ async def read(
async def create_container(
self,
id: str,
partition_key: Optional[PartitionKey],
partition_key: PartitionKey,
*,
indexing_policy: Optional[Dict[str, str]] = None,
default_ttl: Optional[int] = None,
Expand Down Expand Up @@ -265,7 +265,7 @@ async def create_container(
@distributed_trace_async
async def create_container_if_not_exists(
self,
id: str, # pylint: disable=redefined-builtin
id: str,
partition_key: PartitionKey,
**kwargs: Any
) -> ContainerProxy:
Expand Down