Skip to content

Commit fb48541

Browse files
committed
type fixes
1 parent fc2a108 commit fb48541

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

encryption_jwt/encryptor.py

Lines changed: 2 additions & 1 deletion
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(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dependencies = { cryptography = "^38.0.1", aiohttp = "^3.8.1" }
4545

4646
[tool.poetry.group.encryption_jwt]
4747
optional = true
48-
dependencies = { cryptography = "^38.0.1", aiohttp = "^3.8.1", pyjwt = "^2.9.0", aioboto3 = "^13.1.1", "requests" = "^2.32.3" }
48+
dependencies = { cryptography = "^38.0.1", aiohttp = "^3.8.1", pyjwt = "^2.9.0", aioboto3 = "^13.1.1", "requests" = "^2.32.3", "types-requests": "^2.32.0" }
4949

5050
[tool.poetry.group.gevent]
5151
optional = true

0 commit comments

Comments
 (0)