Azure / Azure/azure-sdk-for-python
Type stubs / hints (e.g. pyi) for azure-mgmt-resourcegraph
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description
**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
Contributor guide
Assessment
This issue has not been assessed yet.