@@ -74,12 +74,12 @@ def test_invalid_arguments() -> None:
7474 (['abc' , 'DEF' , 'geh$' ], 2 ),
7575 ([111 , 'DEF' , 'geh$' ], 2 ),
7676 ]:
77- with pytest .raises (ValueError , match = re .escape (str (invalid_groups [bad_group_index ]))): # type: ignore
78- ProxyConfiguration (groups = invalid_groups ) # type: ignore
77+ with pytest .raises (ValueError , match = re .escape (str (invalid_groups [bad_group_index ]))): # type: ignore[index]
78+ ProxyConfiguration (groups = invalid_groups ) # type: ignore[arg-type]
7979
8080 for invalid_country_code in ['CZE' , 'aa' , 'DDDD' , 1111 ]:
8181 with pytest .raises (ValueError , match = re .escape (str (invalid_country_code ))):
82- ProxyConfiguration (country_code = invalid_country_code ) # type: ignore
82+ ProxyConfiguration (country_code = invalid_country_code ) # type: ignore[arg-type]
8383
8484 with pytest .raises (ValueError , match = 'Exactly one of .* must be specified' ):
8585 ProxyConfiguration (
@@ -402,7 +402,7 @@ async def test_initialize_with_valid_configuration(
402402 assert proxy_configuration ._password == DUMMY_PASSWORD
403403 assert proxy_configuration .is_man_in_the_middle is True
404404
405- assert len (patched_apify_client .calls ['user' ]['get' ]) == 1 # type: ignore
405+ assert len (patched_apify_client .calls ['user' ]['get' ]) == 1 # type: ignore[attr-defined]
406406 assert len (route .calls ) == 1
407407
408408
@@ -526,7 +526,7 @@ async def test_initialize_with_non_apify_proxy(
526526
527527 await proxy_configuration .initialize ()
528528
529- assert len (patched_apify_client .calls ['user' ]['get' ]) == 0 # type: ignore
529+ assert len (patched_apify_client .calls ['user' ]['get' ]) == 0 # type: ignore[attr-defined]
530530 assert len (route .calls ) == 0
531531
532532
0 commit comments