Skip to content

Commit

Permalink
Tuple type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipskevin committed Oct 14, 2024
1 parent fc2a108 commit 62bf433
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion encryption_jwt/encryptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import base64
import logging
import os
import typing

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

return self._boto_session

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

0 comments on commit 62bf433

Please sign in to comment.