diff --git a/sdk/core/azure-core/CHANGELOG.md b/sdk/core/azure-core/CHANGELOG.md index bc650815c813..ca1427a75ab2 100644 --- a/sdk/core/azure-core/CHANGELOG.md +++ b/sdk/core/azure-core/CHANGELOG.md @@ -3,6 +3,9 @@ ## 1.6.1 (Unreleased) +### Bug fixes + +- `AzureKeyCredentialPolicy` will now accept (and ignore) passed in kwargs #11963 ## 1.6.0 (2020-06-03) diff --git a/sdk/core/azure-core/azure/core/pipeline/policies/_authentication.py b/sdk/core/azure-core/azure/core/pipeline/policies/_authentication.py index 36edd3cbc020..be555583d58c 100644 --- a/sdk/core/azure-core/azure/core/pipeline/policies/_authentication.py +++ b/sdk/core/azure-core/azure/core/pipeline/policies/_authentication.py @@ -102,8 +102,8 @@ class AzureKeyCredentialPolicy(SansIOHTTPPolicy): :param str name: The name of the key header used for the credential. :raises: ValueError or TypeError """ - def __init__(self, credential, name): - # type: (AzureKeyCredential, str) -> None + def __init__(self, credential, name, **kwargs): # pylint: disable=unused-argument + # type: (AzureKeyCredential, str, Any) -> None super(AzureKeyCredentialPolicy, self).__init__() self._credential = credential if not name: