Azure / Azure/azure-sdk-for-python
Wrong type for unique_key_policy in CosmosDB async DatabaseProxy.create_container
- Vorherrschende Sprache
- Python
- Sterne
- 5.6k
- Forks
- 3.4k
- Ø Merge
- 2 T.
- Gemergte PRs (30 T.)
- 217
Beschreibung
- **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.
Beitragsleitfaden
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- azure, python
- Bereich
- backend, databases
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 55/100