Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.53k stars 2.76k forks source link

resource_client.resource_groups.create_or_update causes Pylance error #35341

Open starlord-daniel opened 4 months ago

starlord-daniel commented 4 months ago

Describe the bug The documented implementation of creating a resource group with the SDK causes an issue with Pylance. The code itself works, but the typing is causing an error with the default language server.

To Reproduce Steps to reproduce the behavior:

  1. Follow the documentation for creating a resource group while running the newest version of Pylance on VS Code.

Expected behavior No type error should appear.

Screenshots

image image

Additional context The issue likely results from the fact, the package includes all versions of the resource.resources..operations. Ideally, they could be removed to create clarity.

github-actions[bot] commented 4 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure.