Skip to content

Commit

Permalink
Fix #8289 by only requiring typing_extensions in TYPE_CHECKING mode (#…
Browse files Browse the repository at this point in the history
…8290)

Co-authored-by: Joris Vandermeersch <joris@vdmr.be>
  • Loading branch information
jvdmr and Joris Vandermeersch authored Nov 4, 2024
1 parent 32e7efe commit bb27c62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moto/ec2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@
Ed25519PublicKey,
)
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPublicKey
from typing_extensions import TypeAlias

from moto.core.utils import utcnow
from moto.iam import iam_backends
from moto.moto_api._internal import mock_random as random
from moto.utilities.utils import md5_hash

if TYPE_CHECKING:
from typing_extensions import TypeAlias

HashType: TypeAlias = hashlib._Hash

EC2_RESOURCE_TO_PREFIX = {
Expand Down

0 comments on commit bb27c62

Please sign in to comment.