Skip to content

Commit 5fdeae5

Browse files
authored
have AzureKeyCredentialPolicy accept and ignore kwargs (#11963)
1 parent dfc0037 commit 5fdeae5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

sdk/core/azure-core/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
## 1.6.1 (Unreleased)
55

6+
### Bug fixes
7+
8+
- `AzureKeyCredentialPolicy` will now accept (and ignore) passed in kwargs #11963
69

710
## 1.6.0 (2020-06-03)
811

sdk/core/azure-core/azure/core/pipeline/policies/_authentication.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ class AzureKeyCredentialPolicy(SansIOHTTPPolicy):
102102
:param str name: The name of the key header used for the credential.
103103
:raises: ValueError or TypeError
104104
"""
105-
def __init__(self, credential, name):
106-
# type: (AzureKeyCredential, str) -> None
105+
def __init__(self, credential, name, **kwargs): # pylint: disable=unused-argument
106+
# type: (AzureKeyCredential, str, Any) -> None
107107
super(AzureKeyCredentialPolicy, self).__init__()
108108
self._credential = credential
109109
if not name:

0 commit comments

Comments
 (0)