File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 40
40
)
41
41
except ImportError :
42
42
try :
43
- from pypdf ._crypt_providers ._cryptography import ( # type: ignore
43
+ from pypdf ._crypt_providers ._cryptography import ( # type: ignore[assignment]
44
44
CryptAES ,
45
45
CryptRC4 ,
46
46
aes_cbc_decrypt ,
51
51
rc4_encrypt ,
52
52
)
53
53
except ImportError :
54
- from pypdf ._crypt_providers ._fallback import ( # type: ignore
54
+ from pypdf ._crypt_providers ._fallback import ( # type: ignore[assignment]
55
55
CryptAES ,
56
56
CryptRC4 ,
57
57
aes_cbc_decrypt ,
Original file line number Diff line number Diff line change 27
27
28
28
import secrets
29
29
30
- from cryptography .hazmat .primitives import padding
31
- from cryptography .hazmat .primitives .ciphers .algorithms import AES , ARC4
32
- from cryptography .hazmat .primitives .ciphers .base import Cipher
33
- from cryptography .hazmat .primitives .ciphers .modes import CBC , ECB
30
+ from cryptography .hazmat .primitives import padding # type: ignore[import]
31
+ from cryptography .hazmat .primitives .ciphers .algorithms import AES , ARC4 # type: ignore[import]
32
+ from cryptography .hazmat .primitives .ciphers .base import Cipher # type: ignore[import]
33
+ from cryptography .hazmat .primitives .ciphers .modes import CBC , ECB # type: ignore[import]
34
34
35
35
from pypdf ._crypt_providers ._base import CryptBase
36
36
You can’t perform that action at this time.
0 commit comments