File tree Expand file tree Collapse file tree 10 files changed +29
-8
lines changed
azure-keyvault-administration/azure/keyvault/administration/_internal
azure-keyvault-certificates
azure/keyvault/certificates/_shared
azure-keyvault-keys/azure/keyvault/keys/_shared
azure/keyvault/secrets/_shared Expand file tree Collapse file tree 10 files changed +29
-8
lines changed Original file line number Diff line number Diff line change 9
9
from .challenge_auth_policy import ChallengeAuthPolicy
10
10
from .client_base import KeyVaultClientBase
11
11
from .http_challenge import HttpChallenge
12
- from . import http_challenge_cache as HttpChallengeCache
12
+ from . import http_challenge_cache
13
13
14
+ HttpChallengeCache = http_challenge_cache # to avoid aliasing pylint error (C4745)
14
15
15
16
__all__ = [
16
17
"ChallengeAuthPolicy" ,
Original file line number Diff line number Diff line change 2
2
# Copyright (c) Microsoft Corporation.
3
3
# Licensed under the MIT License.
4
4
# ------------------------------------
5
+ # pylint:skip-file (avoids crash due to six.with_metaclass https://github.com/PyCQA/astroid/issues/713)
5
6
from typing import TYPE_CHECKING
6
7
from enum import Enum
8
+ from six import with_metaclass
7
9
10
+ from azure .core import CaseInsensitiveEnumMeta
8
11
from azure .core .pipeline .transport import RequestsTransport
9
12
from azure .core .pipeline .policies import HttpLoggingPolicy
10
13
18
21
from azure .core .credentials import TokenCredential
19
22
20
23
21
- class ApiVersion (str , Enum ):
24
+ class ApiVersion (with_metaclass ( CaseInsensitiveEnumMeta , str , Enum ) ):
22
25
"""Key Vault API versions supported by this package"""
23
26
24
27
#: this is the default version
Original file line number Diff line number Diff line change 12
12
from .challenge_auth_policy import ChallengeAuthPolicy
13
13
from .client_base import KeyVaultClientBase
14
14
from .http_challenge import HttpChallenge
15
- from . import http_challenge_cache as HttpChallengeCache
15
+ from . import http_challenge_cache
16
+
17
+ HttpChallengeCache = http_challenge_cache # to avoid aliasing pylint error (C4745)
16
18
17
19
if TYPE_CHECKING :
18
20
# pylint: disable=unused-import
Original file line number Diff line number Diff line change 2
2
# Copyright (c) Microsoft Corporation.
3
3
# Licensed under the MIT License.
4
4
# ------------------------------------
5
+ # pylint:skip-file (avoids crash due to six.with_metaclass https://github.com/PyCQA/astroid/issues/713)
5
6
from typing import TYPE_CHECKING
6
7
from enum import Enum
8
+ from six import with_metaclass
7
9
10
+ from azure .core import CaseInsensitiveEnumMeta
8
11
from azure .core .pipeline .transport import RequestsTransport
9
12
from azure .core .pipeline .policies import HttpLoggingPolicy
10
13
18
21
from azure .core .credentials import TokenCredential
19
22
20
23
21
- class ApiVersion (str , Enum ):
24
+ class ApiVersion (with_metaclass ( CaseInsensitiveEnumMeta , str , Enum ) ):
22
25
"""Key Vault API versions supported by this package"""
23
26
24
27
#: this is the default version
Original file line number Diff line number Diff line change 70
70
"azure-core<2.0.0,>=1.20.0" ,
71
71
"msrest>=0.6.21" ,
72
72
"azure-common~=1.1" ,
73
+ "six>=1.11.0" ,
73
74
],
74
75
)
Original file line number Diff line number Diff line change 12
12
from .challenge_auth_policy import ChallengeAuthPolicy
13
13
from .client_base import KeyVaultClientBase
14
14
from .http_challenge import HttpChallenge
15
- from . import http_challenge_cache as HttpChallengeCache
15
+ from . import http_challenge_cache
16
+
17
+ HttpChallengeCache = http_challenge_cache # to avoid aliasing pylint error (C4745)
16
18
17
19
if TYPE_CHECKING :
18
20
# pylint: disable=unused-import
Original file line number Diff line number Diff line change 2
2
# Copyright (c) Microsoft Corporation.
3
3
# Licensed under the MIT License.
4
4
# ------------------------------------
5
+ # pylint:skip-file (avoids crash due to six.with_metaclass https://github.com/PyCQA/astroid/issues/713)
5
6
from typing import TYPE_CHECKING
6
7
from enum import Enum
8
+ from six import with_metaclass
7
9
10
+ from azure .core import CaseInsensitiveEnumMeta
8
11
from azure .core .pipeline .transport import RequestsTransport
9
12
from azure .core .pipeline .policies import HttpLoggingPolicy
10
13
18
21
from azure .core .credentials import TokenCredential
19
22
20
23
21
- class ApiVersion (str , Enum ):
24
+ class ApiVersion (with_metaclass ( CaseInsensitiveEnumMeta , str , Enum ) ):
22
25
"""Key Vault API versions supported by this package"""
23
26
24
27
#: this is the default version
Original file line number Diff line number Diff line change 12
12
from .challenge_auth_policy import ChallengeAuthPolicy
13
13
from .client_base import KeyVaultClientBase
14
14
from .http_challenge import HttpChallenge
15
- from . import http_challenge_cache as HttpChallengeCache
15
+ from . import http_challenge_cache
16
+
17
+ HttpChallengeCache = http_challenge_cache # to avoid aliasing pylint error (C4745)
16
18
17
19
if TYPE_CHECKING :
18
20
# pylint: disable=unused-import
Original file line number Diff line number Diff line change 2
2
# Copyright (c) Microsoft Corporation.
3
3
# Licensed under the MIT License.
4
4
# ------------------------------------
5
+ # pylint:skip-file (avoids crash due to six.with_metaclass https://github.com/PyCQA/astroid/issues/713)
5
6
from typing import TYPE_CHECKING
6
7
from enum import Enum
8
+ from six import with_metaclass
7
9
10
+ from azure .core import CaseInsensitiveEnumMeta
8
11
from azure .core .pipeline .transport import RequestsTransport
9
12
from azure .core .pipeline .policies import HttpLoggingPolicy
10
13
18
21
from azure .core .credentials import TokenCredential
19
22
20
23
21
- class ApiVersion (str , Enum ):
24
+ class ApiVersion (with_metaclass ( CaseInsensitiveEnumMeta , str , Enum ) ):
22
25
"""Key Vault API versions supported by this package"""
23
26
24
27
#: this is the default version
Original file line number Diff line number Diff line change 70
70
"azure-core<2.0.0,>=1.20.0" ,
71
71
"msrest>=0.6.21" ,
72
72
"azure-common~=1.1" ,
73
+ "six>=1.11.0" ,
73
74
],
74
75
)
You can’t perform that action at this time.
0 commit comments