- 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:
|
return KeyVaultOperationPoller(polling_method) |
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()
Describe the bug
The type signature for
begin_delete_secretstates this function returns aDeletedSecretinstead of aLROPoller[DeletedSecret]orKeyVaultOperationPoller[DeletedSecret].The implementation of the type signature states:
azure-sdk-for-python/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_client.py
Lines 296 to 297 in c8291ac
This disagrees with both the documentation:
azure-sdk-for-python/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_client.py
Line 309 in c8291ac
And the implementation:
azure-sdk-for-python/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_client.py
Line 338 in c8291ac
To Reproduce
Steps to reproduce the behavior:
The following is invalid according to mypy: