Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@

if TYPE_CHECKING:
# pylint:disable=unused-import,ungrouped-imports
from typing import Any
from typing import Any, Union
from azure.core.credentials import TokenCredential
from azure.identity import DefaultAzureCredential


class ApiVersion(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
Expand All @@ -37,7 +38,7 @@ class ApiVersion(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):

class KeyVaultClientBase(object):
def __init__(self, vault_url, credential, **kwargs):
# type: (str, TokenCredential, **Any) -> None
# type: (str, Union[TokenCredential,DefaultAzureCredential], **Any) -> None
if not credential:
raise ValueError(
"credential should be an object supporting the TokenCredential protocol, "
Expand Down