File tree 1 file changed +9
-1
lines changed
test_vector_handlers/src/awses_test_vectors/manifests
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 40
40
41
41
from .master_key import KNOWN_TYPES as MASTER_KEY_KNOWN_TYPES , MasterKeySpec
42
42
43
+ try : # Python 3.5.0 and 3.5.1 have incompatible typing modules
44
+ from typing import Iterable # noqa pylint: disable=unused-import
45
+
46
+ from awses_test_vectors .internal .mypy_types import MASTER_KEY_SPEC # noqa pylint: disable=unused-import
47
+ except ImportError : # pragma: no cover
48
+ # We only actually need these imports when running the mypy checks
49
+ pass
50
+
43
51
KEYRING_ONLY_KNOWN_TYPES = ("aws-kms-hierarchy" , )
44
52
45
53
@@ -63,7 +71,7 @@ class KeyringSpec(MasterKeySpec): # pylint: disable=too-many-instance-attribute
63
71
64
72
@classmethod
65
73
def from_scenario (cls , spec ):
66
- # type: (MASTER_KEY_SPEC) -> MasterKeySpec
74
+ # type: (MASTER_KEY_SPEC) -> KeyringSpec
67
75
"""Load from a keyring specification.
68
76
69
77
:param dict spec: Master key specification JSON
You can’t perform that action at this time.
0 commit comments