Skip to content

Commit 67cf417

Browse files
mattsb42-awslizroth
authored andcommitted
add typing imports
1 parent 35e6549 commit 67cf417

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/aws_encryption_sdk/identifiers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121

2222
from aws_encryption_sdk.exceptions import InvalidAlgorithmError
2323

24+
try: # Python 3.5.0 and 3.5.1 have incompatible typing modules
25+
from typing import Optional # noqa pylint: disable=unused-import
26+
except ImportError: # pragma: no cover
27+
# We only actually need these imports when running the mypy checks
28+
pass
29+
2430
__version__ = "1.3.8"
2531
USER_AGENT_SUFFIX = "AwsEncryptionSdkPython/{}".format(__version__)
2632

src/aws_encryption_sdk/internal/formatting/deserialize.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
from aws_encryption_sdk.internal.utils.streams import TeeStream
4141
from aws_encryption_sdk.structures import EncryptedDataKey, MasterKeyInfo, MessageHeader
4242

43+
try: # Python 3.5.0 and 3.5.1 have incompatible typing modules
44+
from typing import IO, Set # noqa pylint: disable=unused-import
45+
except ImportError: # pragma: no cover
46+
# We only actually need these imports when running the mypy checks
47+
pass
48+
4349
_LOGGER = logging.getLogger(__name__)
4450

4551

0 commit comments

Comments
 (0)