Skip to content

resource_client.resource_groups.create_or_update causes Pylance error #35341

Open
@starlord-daniel

Description

@starlord-daniel
  • azure-mgmt-resource==23.0.1
  • Mac OS 14.4
  • Python 3.10.6

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.<VERSIONS_HERE>.operations. Ideally, they could be removed to create clarity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ARMMgmtThis issue is related to a management-plane library.Service AttentionWorkflow: This issue is responsible by Azure service team.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions