Skip to content

azure.keyvault.secrets begin_delete_secret has invalid type signature #19411

Description

@bmc-msft
  • Package Name: azure.keyvault.secrets
  • Package Version: 4.3.0
  • Operating System: Ubuntu-20.04
  • Python Version: 3.8.5

Describe the bug

The type signature for begin_delete_secret states this function returns a DeletedSecret instead of a LROPoller[DeletedSecret] or KeyVaultOperationPoller[DeletedSecret].

The implementation of the type signature states:

def begin_delete_secret(self, name, **kwargs):
# type: (str, **Any) -> DeletedSecret

This disagrees with both the documentation:

:rtype: ~azure.core.polling.LROPoller[~azure.keyvault.secrets.DeletedSecret]

And the implementation:

To Reproduce
Steps to reproduce the behavior:

The following is invalid according to mypy:

client = SecretClient(valut_url=vault_url, credential=DefaultAzureCredential())
client.begin_delete_secret(secret).wait()

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.KeyVaultbugThis issue requires a change to an existing behavior in the product in order to be resolved.issue-addressedWorkflow: The Azure SDK team believes it to be addressed and ready to close.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions