Skip to content

Commit

Permalink
Fix mypy in core authentication (#15768)
Browse files Browse the repository at this point in the history
* Fix mypy in core authentication

* Remove uselss import
  • Loading branch information
lmazuel committed Dec 12, 2020
1 parent 2f74871 commit 8764dc0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

if TYPE_CHECKING:
# pylint:disable=unused-import
from typing import Any, Dict, Mapping, Optional
from typing import Any, Dict, Optional
from azure.core.credentials import AccessToken, TokenCredential, AzureKeyCredential
from azure.core.pipeline import PipelineRequest

Expand All @@ -31,7 +31,7 @@ class _BearerTokenCredentialPolicyBase(object):
"""

def __init__(self, credential, *scopes, **kwargs): # pylint:disable=unused-argument
# type: (TokenCredential, *str, Mapping[str, Any]) -> None
# type: (TokenCredential, *str, **Any) -> None
super(_BearerTokenCredentialPolicyBase, self).__init__()
self._scopes = scopes
self._credential = credential
Expand Down Expand Up @@ -103,7 +103,7 @@ class AzureKeyCredentialPolicy(SansIOHTTPPolicy):
:raises: ValueError or TypeError
"""
def __init__(self, credential, name, **kwargs): # pylint: disable=unused-argument
# type: (AzureKeyCredential, str, Any) -> None
# type: (AzureKeyCredential, str, **Any) -> None
super(AzureKeyCredentialPolicy, self).__init__()
self._credential = credential
if not name:
Expand Down

0 comments on commit 8764dc0

Please sign in to comment.