Azure / Azure/azure-sdk-for-python
Wrong type for unique_key_policy in CosmosDB async DatabaseProxy.create_container
- Lingua principale
- Python
- Stelle
- 5.6k
- Fork
- 3.4k
- Merge medio
- 2g 2h
- PR unite (30g)
- 202
Descrizione
- **Package Name**: azure-cosmos
- **Package Version**: 4.9.0
- **Operating System**: mcr.microsoft.com/devcontainers/python:1-3.13 through WSL
- **Python Version**: 3.13
**Describe the bug**
For the `DatabaseProxy.create_container` method, `unique_key_policy` should be typed as `Dict[str, Any] | None` as in the sync counterpart.
It's now `Dict[str, str] | None` for async.
**To Reproduce**
Steps to reproduce the behavior:
1. Install the package
**Expected behavior**
unique_key_policy should be typed as `Dict[str, Any] | None` as in the sync counterpart.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Additional context**
Add any other context about the problem here.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Compare the async DatabaseProxy.create_container annotation for unique_key_policy with the sync counterpart mentioned in the issue. Confirm the async signature accepts Dict[str, Any] | None, then run the relevant azure-cosmos tests or type checks to verify the corrected annotation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, python
- Ambito
- backend, databases
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 55/100