Skip to content

Commit 018b93f

Browse files
fix
1 parent 00f4721 commit 018b93f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/aws_encryption_sdk/materials_managers/mpl/cmm.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
The aws-cryptographic-materials-library MUST be installed to use this module.
44
"""
5-
from typing import List
65
# pylint should pass even if the MPL isn't installed
76
# Also thinks these imports aren't used if it can't import them
87
# noqa pylint: disable=import-error,unused-import
@@ -21,13 +20,19 @@
2120
)
2221
# noqa pylint: enable=import-error,unused-import
2322

23+
# pylint and isort disagree on where this should go. Choose isort and disable pylint for this.
24+
from typing import List # noqa pylint: disable=wrong-import-order
25+
2426
from aws_encryption_sdk.exceptions import AWSEncryptionSDKClientError
2527
from aws_encryption_sdk.identifiers import CommitmentPolicy
2628
from aws_encryption_sdk.materials_managers import DecryptionMaterialsRequest, EncryptionMaterialsRequest
2729
from aws_encryption_sdk.materials_managers.base import CryptoMaterialsManager
2830
from aws_encryption_sdk.materials_managers.mpl.materials import DecryptionMaterialsFromMPL, EncryptionMaterialsFromMPL
2931
from aws_encryption_sdk.structures import EncryptedDataKey as Native_EncryptedDataKey
3032

33+
# noqa pylint: enable=import-error,unused-import
34+
35+
3136

3237
class CryptoMaterialsManagerFromMPL(CryptoMaterialsManager):
3338
"""

src/aws_encryption_sdk/materials_managers/mpl/materials.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
The aws-cryptographic-materials-library MUST be installed to use this module.
44
"""
5-
from typing import Dict, List, Set
65
# pylint should pass even if the MPL isn't installed
76
# noqa pylint: disable=import-error
87
from aws_cryptographic_materialproviders.mpl.models import (
@@ -12,6 +11,9 @@
1211
)
1312
# noqa pylint: enable=import-error
1413

14+
# pylint and isort disagree on where this should go. Choose isort and disable pylint for this.
15+
from typing import Dict, List, Set # noqa pylint: disable=wrong-import-order
16+
1517
from aws_encryption_sdk.identifiers import Algorithm, AlgorithmSuite
1618
from aws_encryption_sdk.materials_managers import (
1719
DecryptionMaterials as Native_DecryptionMaterials,

0 commit comments

Comments
 (0)