33from .mypy_helper import run_and_assert_mypy
44
55
6- def test_array_list_valid (stub_dir : Path , mypy_project_dir : Path ):
6+ def test_array_list_valid (mypy_project_dir : Path ):
77 code = """\
88 from java.util import ArrayList
99
@@ -21,10 +21,10 @@ def test_array_list_valid(stub_dir: Path, mypy_project_dir: Path):
2121 note: Revealed type is "builtins.str"''' ,
2222 }
2323
24- run_and_assert_mypy (mypy_project_dir , stub_dir , code , expected_mypy_output )
24+ run_and_assert_mypy (mypy_project_dir , code , expected_mypy_output )
2525
2626
27- def test_array_list_invalid (stub_dir : Path , mypy_project_dir : Path ):
27+ def test_array_list_invalid (mypy_project_dir : Path ):
2828 code = """\
2929 from java.util import ArrayList
3030
@@ -40,10 +40,10 @@ def test_array_list_invalid(stub_dir: Path, mypy_project_dir: Path):
4040hint: def add(self, int: int | jint | Integer, e: str) -> None""" ,
4141 }
4242
43- run_and_assert_mypy (mypy_project_dir , stub_dir , code , expected_mypy_output )
43+ run_and_assert_mypy (mypy_project_dir , code , expected_mypy_output )
4444
4545
46- def test_array_list_no_implicit_conversion (stub_dir : Path , mypy_project_dir : Path ):
46+ def test_array_list_no_implicit_conversion (mypy_project_dir : Path ):
4747 code = """\
4848 from java.util import ArrayList
4949
@@ -60,10 +60,10 @@ def test_array_list_no_implicit_conversion(stub_dir: Path, mypy_project_dir: Pat
6060hint: def [_ArrayList__E] ArrayList(self, collection: Collection[_ArrayList__E]) -> ArrayList[_ArrayList__E]""" ,
6161 }
6262
63- run_and_assert_mypy (mypy_project_dir , stub_dir , code , expected_mypy_output )
63+ run_and_assert_mypy (mypy_project_dir , code , expected_mypy_output )
6464
6565
66- def test_array_list_missing_type_annotation (stub_dir : Path , mypy_project_dir : Path ):
66+ def test_array_list_missing_type_annotation (mypy_project_dir : Path ):
6767 code = """\
6868 from java.util import ArrayList
6969
@@ -74,10 +74,10 @@ def test_array_list_missing_type_annotation(stub_dir: Path, mypy_project_dir: Pa
7474 "*1" : 'error: Need type annotation for "java_array_list"' ,
7575 }
7676
77- run_and_assert_mypy (mypy_project_dir , stub_dir , code , expected_mypy_output )
77+ run_and_assert_mypy (mypy_project_dir , code , expected_mypy_output )
7878
7979
80- def test_array_list_no_getitem (stub_dir : Path , mypy_project_dir : Path ):
80+ def test_array_list_no_getitem (mypy_project_dir : Path ):
8181 code = """\
8282 from java.util import ArrayList
8383
@@ -89,4 +89,4 @@ def test_array_list_no_getitem(stub_dir: Path, mypy_project_dir: Path):
8989 "*1" : 'error: Value of type "ArrayList[str]" is not indexable' ,
9090 }
9191
92- run_and_assert_mypy (mypy_project_dir , stub_dir , code , expected_mypy_output )
92+ run_and_assert_mypy (mypy_project_dir , code , expected_mypy_output )
0 commit comments