File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 4545# NOTE: these are defined as functions so both can be tested
4646def _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
6565def _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 ):
You can’t perform that action at this time.
0 commit comments