Skip to content

Commit ccc983c

Browse files
committed
Tuple type fix
1 parent fc6e94b commit ccc983c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: encryption_jwt/encryptor.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import base64
33
import logging
44
import os
5+
import typing
56

67
from botocore.exceptions import ClientError
78
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
@@ -27,7 +28,7 @@ def boto_session(self):
2728

2829
return self._boto_session
2930

30-
async def encrypt(self, data: bytes) -> tuple[bytes, bytes]:
31+
async def encrypt(self, data: bytes) -> typing.Tuple[bytes, bytes]:
3132
"""Encrypt data using a key from KMS."""
3233
# The keys are rotated automatically by KMS, so fetch a new key to encrypt the data.
3334
data_key_encrypted, data_key_plaintext = await self.__create_data_key(

0 commit comments

Comments
 (0)