Skip to content

Commit f087b17

Browse files
committed
Fix linting failures caused by a new Ruff version
1 parent ca89a94 commit f087b17

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

storages/backends/s3.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
# NOTE: these are defined as functions so both can be tested
4646
def _use_cryptography_signer():
4747
# https://cryptography.io as an RSA backend
48-
from cryptography.hazmat.backends import default_backend
49-
from cryptography.hazmat.primitives import hashes
50-
from cryptography.hazmat.primitives.asymmetric import padding
51-
from cryptography.hazmat.primitives.serialization import load_pem_private_key
48+
from cryptography.hazmat.backends import default_backend # noqa: PLC0415
49+
from cryptography.hazmat.primitives import hashes # noqa: PLC0415
50+
from cryptography.hazmat.primitives.asymmetric import padding # noqa: PLC0415
51+
from cryptography.hazmat.primitives.serialization import load_pem_private_key # noqa: PLC0415
5252

5353
def _cloud_front_signer_from_pem(key_id, pem):
5454
if isinstance(pem, str):
@@ -64,7 +64,7 @@ def _cloud_front_signer_from_pem(key_id, pem):
6464

6565
def _use_rsa_signer():
6666
# https://stuvel.eu/rsa as an RSA backend
67-
import rsa
67+
import rsa # noqa: PLC0415
6868

6969
def _cloud_front_signer_from_pem(key_id, pem):
7070
if isinstance(pem, str):

0 commit comments

Comments
 (0)