1313FIXTURE_PATH = "tests/fixtures/"
1414
1515
16- async def async_check_changes (filename : str , control : str ):
16+ async def async_check_changes (filename : str , control : str ) -> None :
1717 async with aiofiles .open (filename , 'r' ) as fp :
1818 content_modified : str = await fp .read ()
1919
@@ -37,7 +37,7 @@ async def async_test_main(
3737 argv : list [str ] | None ,
3838 returncode : int ,
3939 capsys : CaptureFixture | None = None ,
40- ):
40+ ) -> None :
4141 filename = FIXTURE_PATH + filename
4242 control = FIXTURE_PATH + control
4343 if argv is None :
@@ -96,15 +96,15 @@ async def async_test_main(
9696 ['-v' ], 12 ,
9797 id = "debug" ,
9898 ),
99- )
99+ ),
100100)
101101async def test_main (
102102 filename : str ,
103103 control : str ,
104104 argv : list [str ] | None ,
105105 returncode : int ,
106106 capsys : CaptureFixture ,
107- ):
107+ ) -> None :
108108 await async_test_main (filename , control , argv , returncode , capsys )
109109
110110
@@ -154,14 +154,14 @@ async def test_py_version(
154154 id = "type_alias_pep604_310_updated" ,
155155 marks = pytest .mark .xfail (reason = "Not implented in mypy + pyupgrade (yet)" ),
156156 ),
157- )
157+ ),
158158)
159159async def test_main_type_alias (
160160 filename : str ,
161161 control : str ,
162162 argv : list [str ] | None ,
163163 returncode : int ,
164- ):
164+ ) -> None :
165165 await async_test_main (filename , control , argv , returncode )
166166
167167
@@ -218,15 +218,15 @@ async def test_main_type_alias(
218218 ['--force' ], 2 ,
219219 id = "comment_5_forced" ,
220220 ),
221- )
221+ ),
222222)
223223async def test_main_comment (
224224 filename : str ,
225225 control : str ,
226226 argv : list [str ] | None ,
227227 returncode : int ,
228228 capsys : CaptureFixture ,
229- ):
229+ ) -> None :
230230 await async_test_main (filename , control , argv , returncode , capsys )
231231
232232
@@ -263,14 +263,14 @@ async def test_main_comment(
263263 None , 0 ,
264264 id = "comment_no_issue_6" ,
265265 ),
266- )
266+ ),
267267)
268268async def test_main_comment_no_issue (
269269 filename : str ,
270270 control : str ,
271271 argv : list [str ] | None ,
272272 returncode : int ,
273- ):
273+ ) -> None :
274274 await async_test_main (filename , control , argv , returncode )
275275
276276
@@ -297,14 +297,14 @@ async def test_main_comment_no_issue(
297297 None , 0 ,
298298 id = "comment_import_no_issue_4" ,
299299 ),
300- )
300+ ),
301301)
302302async def test_main_comment_import_no_issue (
303303 filename : str ,
304304 control : str ,
305305 argv : list [str ] | None ,
306306 returncode : int ,
307- ):
307+ ) -> None :
308308 await async_test_main (filename , control , argv , returncode )
309309
310310
@@ -371,15 +371,15 @@ async def test_main_comment_import_no_issue(
371371 ['--force' ], 2 ,
372372 id = "unused_import_8_forced" ,
373373 ),
374- )
374+ ),
375375)
376376async def test_main_unused_import (
377377 filename : str ,
378378 control : str ,
379379 argv : list [str ] | None ,
380380 returncode : int ,
381381 capsys : CaptureFixture ,
382- ):
382+ ) -> None :
383383 await async_test_main (filename , control , argv , returncode , capsys )
384384
385385
@@ -446,15 +446,15 @@ async def test_main_unused_import(
446446 ['--force' ], 2 ,
447447 id = "unused_import_comment_8_forced" ,
448448 ),
449- )
449+ ),
450450)
451451async def test_main_unused_import_comment (
452452 filename : str ,
453453 control : str ,
454454 argv : list [str ] | None ,
455455 returncode : int ,
456456 capsys : CaptureFixture ,
457- ):
457+ ) -> None :
458458 await async_test_main (filename , control , argv , returncode , capsys )
459459
460460
@@ -471,12 +471,12 @@ async def test_main_unused_import_comment(
471471 ['--keep-updates' ], 0 ,
472472 id = "keep_updates" ,
473473 ),
474- )
474+ ),
475475)
476476async def test_main_keep_updates (
477477 filename : str ,
478478 control : str ,
479479 argv : list [str ] | None ,
480480 returncode : int ,
481- ):
481+ ) -> None :
482482 await async_test_main (filename , control , argv , returncode )
0 commit comments