Skip to content

Commit af0e372

Browse files
flake8
1 parent e343199 commit af0e372

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test_vector_handlers/src/awses_test_vectors/manifests/mpl_keyring.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@
4040

4141
from .master_key import KNOWN_TYPES as MASTER_KEY_KNOWN_TYPES, MasterKeySpec
4242

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+
4351
KEYRING_ONLY_KNOWN_TYPES = ("aws-kms-hierarchy", )
4452

4553

@@ -63,7 +71,7 @@ class KeyringSpec(MasterKeySpec): # pylint: disable=too-many-instance-attribute
6371

6472
@classmethod
6573
def from_scenario(cls, spec):
66-
# type: (MASTER_KEY_SPEC) -> MasterKeySpec
74+
# type: (MASTER_KEY_SPEC) -> KeyringSpec
6775
"""Load from a keyring specification.
6876
6977
:param dict spec: Master key specification JSON

0 commit comments

Comments
 (0)