Azure / Azure/azure-sdk-for-python

Type stubs / hints (e.g. pyi) for azure-mgmt-resourcegraph

Aperta
#42,587 1 commento 0 reazioni 1 assegnatario Rivendicata da @msyyc Vedi su GitHub
customer-reported Mgmt question
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g
PR unite (30g)
217

Descrizione

**Is your feature request related to a problem? Please describe.**
My team spent an entire day trying to pin down a major customer issue, which boiled down to a typo in one of the `QueryRequestOptions` property names (something like `options.skip_tokens` instead of `options.skip_token`). We do run `Pyright` type validation in our CI, but it seems the ARG part of the SDK is missing the required type info for this to work.

**Describe the solution you'd like**
Add type information to the `azure-mgmt-resourcegraph` classes (really to all classes, but this one in particular hit us this time). I believe this is done via `pyi` files, which appears to have been done for the Storage API: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/azure/storage/blob

**Describe alternatives you've considered**
Not using weakly typed languages...

**Additional context**
There are no `pyi` files here, which I suspect is the reason for the missing type information (preventing our Pyright linting from detecting the issue): https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/resources/azure-mgmt-resourcegraph/azure/mgmt/resourcegraph

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.