Azure / Azure/azure-sdk-for-python

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

Offen
#42,587 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @msyyc Auf GitHub ansehen
customer-reported Mgmt question
Vorherrschende Sprache
Python
Sterne
5.6k
Forks
3.4k
Ø Merge
2 T. 2 Std.
Gemergte PRs (30 T.)
213

Beschreibung

**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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.