@@ -45,7 +45,7 @@ def test_invalid_key_size(self):
4545
4646 def test_invalid_key_type (self ):
4747 with pytest .raises (TypeError , match = "key must be bytes" ):
48- AES ("0" * 32 )
48+ AES ("0" * 32 ) # type: ignore[arg-type]
4949
5050
5151class TestAESXTS (object ):
@@ -59,7 +59,7 @@ def test_invalid_key_size_with_mode(self, mode, backend):
5959
6060 def test_xts_tweak_not_bytes (self ):
6161 with pytest .raises (TypeError ):
62- modes .XTS (32 )
62+ modes .XTS (32 ) # type: ignore[arg-type]
6363
6464 def test_xts_tweak_too_small (self ):
6565 with pytest .raises (ValueError ):
@@ -93,7 +93,7 @@ def test_invalid_key_size(self):
9393
9494 def test_invalid_key_type (self ):
9595 with pytest .raises (TypeError , match = "key must be bytes" ):
96- Camellia ("0" * 32 )
96+ Camellia ("0" * 32 ) # type: ignore[arg-type]
9797
9898
9999class TestTripleDES (object ):
@@ -108,7 +108,7 @@ def test_invalid_key_size(self):
108108
109109 def test_invalid_key_type (self ):
110110 with pytest .raises (TypeError , match = "key must be bytes" ):
111- TripleDES ("0" * 16 )
111+ TripleDES ("0" * 16 ) # type: ignore[arg-type]
112112
113113
114114class TestBlowfish (object ):
@@ -126,7 +126,7 @@ def test_invalid_key_size(self):
126126
127127 def test_invalid_key_type (self ):
128128 with pytest .raises (TypeError , match = "key must be bytes" ):
129- Blowfish ("0" * 8 )
129+ Blowfish ("0" * 8 ) # type: ignore[arg-type]
130130
131131
132132class TestCAST5 (object ):
@@ -144,7 +144,7 @@ def test_invalid_key_size(self):
144144
145145 def test_invalid_key_type (self ):
146146 with pytest .raises (TypeError , match = "key must be bytes" ):
147- CAST5 ("0" * 10 )
147+ CAST5 ("0" * 10 ) # type: ignore[arg-type]
148148
149149
150150class TestARC4 (object ):
@@ -170,7 +170,7 @@ def test_invalid_key_size(self):
170170
171171 def test_invalid_key_type (self ):
172172 with pytest .raises (TypeError , match = "key must be bytes" ):
173- ARC4 ("0" * 10 )
173+ ARC4 ("0" * 10 ) # type: ignore[arg-type]
174174
175175
176176class TestIDEA (object ):
@@ -184,7 +184,7 @@ def test_invalid_key_size(self):
184184
185185 def test_invalid_key_type (self ):
186186 with pytest .raises (TypeError , match = "key must be bytes" ):
187- IDEA ("0" * 16 )
187+ IDEA ("0" * 16 ) # type: ignore[arg-type]
188188
189189
190190class TestSEED (object ):
@@ -198,7 +198,7 @@ def test_invalid_key_size(self):
198198
199199 def test_invalid_key_type (self ):
200200 with pytest .raises (TypeError , match = "key must be bytes" ):
201- SEED ("0" * 16 )
201+ SEED ("0" * 16 ) # type: ignore[arg-type]
202202
203203
204204def test_invalid_backend ():
0 commit comments