@@ -425,12 +425,11 @@ def run_tests(context: Context, **kwargs: Any) -> None:
425
425
426
426
427
427
# TODO: commands is unknown, needs revisit
428
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
429
- # inference. See Context and ContextObjects above.
430
- @run .result_callback () # type: ignore[arg-type]
428
+ @run .result_callback ()
431
429
@pass_context
432
430
def finito (
433
431
click_context : Context ,
432
+ / ,
434
433
commands : Any ,
435
434
* args : Any ,
436
435
** kwargs : Any ,
@@ -448,12 +447,10 @@ def finito(
448
447
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
449
448
450
449
451
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
452
- # inference. See Context and ContextObjects above.
453
- @main .group (invoke_without_command = True , cls = CustomGroup ) # type: ignore[arg-type]
450
+ @main .group (invoke_without_command = True , cls = CustomGroup )
454
451
@pass_context
455
452
@verbosity_options
456
- def tests (context : Context , ** kwargs : Any ) -> None :
453
+ def tests (context : Context , / , ** kwargs : Any ) -> None :
457
454
"""
458
455
Manage tests (L1 metadata).
459
456
@@ -468,13 +465,11 @@ def tests(context: Context, **kwargs: Any) -> None:
468
465
tmt .Test .overview (context .obj .tree )
469
466
470
467
471
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
472
- # inference. See Context and ContextObjects above.
473
- @tests .command (name = 'ls' ) # type: ignore[arg-type]
468
+ @tests .command (name = 'ls' )
474
469
@pass_context
475
470
@filtering_options
476
471
@verbosity_options
477
- def tests_ls (context : Context , ** kwargs : Any ) -> None :
472
+ def tests_ls (context : Context , / , ** kwargs : Any ) -> None :
478
473
"""
479
474
List available tests.
480
475
@@ -487,13 +482,11 @@ def tests_ls(context: Context, **kwargs: Any) -> None:
487
482
test .ls ()
488
483
489
484
490
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
491
- # inference. See Context and ContextObjects above.
492
- @tests .command (name = 'show' ) # type: ignore[arg-type]
485
+ @tests .command (name = 'show' )
493
486
@pass_context
494
487
@filtering_options
495
488
@verbosity_options
496
- def tests_show (context : Context , ** kwargs : Any ) -> None :
489
+ def tests_show (context : Context , / , ** kwargs : Any ) -> None :
497
490
"""
498
491
Show test details.
499
492
@@ -949,14 +942,12 @@ def tests_export(
949
942
)
950
943
951
944
952
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
953
- # inference. See Context and ContextObjects above.
954
- @tests .command (name = "id" ) # type: ignore[arg-type]
945
+ @tests .command (name = "id" )
955
946
@pass_context
956
947
@filtering_options
957
948
@verbosity_options
958
949
@force_dry_options
959
- def tests_id (context : Context , ** kwargs : Any ) -> None :
950
+ def tests_id (context : Context , / , ** kwargs : Any ) -> None :
960
951
"""
961
952
Generate a unique id for each selected test.
962
953
@@ -975,13 +966,11 @@ def tests_id(context: Context, **kwargs: Any) -> None:
975
966
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
976
967
977
968
978
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
979
- # inference. See Context and ContextObjects above.
980
- @main .group (invoke_without_command = True , cls = CustomGroup ) # type: ignore[arg-type]
969
+ @main .group (invoke_without_command = True , cls = CustomGroup )
981
970
@pass_context
982
971
@verbosity_options
983
972
@remote_plan_options
984
- def plans (context : Context , ** kwargs : Any ) -> None :
973
+ def plans (context : Context , / , ** kwargs : Any ) -> None :
985
974
"""
986
975
Manage test plans (L2 metadata).
987
976
@@ -997,14 +986,12 @@ def plans(context: Context, **kwargs: Any) -> None:
997
986
tmt .Plan .overview (context .obj .tree )
998
987
999
988
1000
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
1001
- # inference. See Context and ContextObjects above.
1002
- @plans .command (name = 'ls' ) # type: ignore[arg-type]
989
+ @plans .command (name = 'ls' )
1003
990
@pass_context
1004
991
@filtering_options
1005
992
@verbosity_options
1006
993
@remote_plan_options
1007
- def plans_ls (context : Context , ** kwargs : Any ) -> None :
994
+ def plans_ls (context : Context , / , ** kwargs : Any ) -> None :
1008
995
"""
1009
996
List available plans.
1010
997
@@ -1017,15 +1004,13 @@ def plans_ls(context: Context, **kwargs: Any) -> None:
1017
1004
plan .ls ()
1018
1005
1019
1006
1020
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
1021
- # inference. See Context and ContextObjects above.
1022
- @plans .command (name = 'show' ) # type: ignore[arg-type]
1007
+ @plans .command (name = 'show' )
1023
1008
@pass_context
1024
1009
@filtering_options
1025
1010
@environment_options
1026
1011
@verbosity_options
1027
1012
@remote_plan_options
1028
- def plans_show (context : Context , ** kwargs : Any ) -> None :
1013
+ def plans_show (context : Context , / , ** kwargs : Any ) -> None :
1029
1014
"""
1030
1015
Show plan details.
1031
1016
@@ -1187,14 +1172,12 @@ def plans_export(
1187
1172
)
1188
1173
1189
1174
1190
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
1191
- # inference. See Context and ContextObjects above.
1192
- @plans .command (name = "id" ) # type: ignore[arg-type]
1175
+ @plans .command (name = "id" )
1193
1176
@pass_context
1194
1177
@filtering_options
1195
1178
@verbosity_options
1196
1179
@force_dry_options
1197
- def plans_id (context : Context , ** kwargs : Any ) -> None :
1180
+ def plans_id (context : Context , / , ** kwargs : Any ) -> None :
1198
1181
"""
1199
1182
Generate a unique id for each selected plan.
1200
1183
@@ -1213,12 +1196,10 @@ def plans_id(context: Context, **kwargs: Any) -> None:
1213
1196
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1214
1197
1215
1198
1216
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
1217
- # inference. See Context and ContextObjects above.
1218
- @main .group (invoke_without_command = True , cls = CustomGroup ) # type: ignore[arg-type]
1199
+ @main .group (invoke_without_command = True , cls = CustomGroup )
1219
1200
@pass_context
1220
1201
@verbosity_options
1221
- def stories (context : Context , ** kwargs : Any ) -> None :
1202
+ def stories (context : Context , / , ** kwargs : Any ) -> None :
1222
1203
"""
1223
1204
Manage user stories.
1224
1205
@@ -1234,15 +1215,14 @@ def stories(context: Context, **kwargs: Any) -> None:
1234
1215
tmt .Story .overview (context .obj .tree )
1235
1216
1236
1217
1237
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
1238
- # inference. See Context and ContextObjects above.
1239
- @stories .command (name = 'ls' ) # type: ignore[arg-type]
1218
+ @stories .command (name = 'ls' )
1240
1219
@pass_context
1241
1220
@filtering_options_long
1242
1221
@story_flags_filter_options
1243
1222
@verbosity_options
1244
1223
def stories_ls (
1245
1224
context : Context ,
1225
+ / ,
1246
1226
implemented : bool ,
1247
1227
verified : bool ,
1248
1228
documented : bool ,
@@ -1275,15 +1255,14 @@ def stories_ls(
1275
1255
story .ls ()
1276
1256
1277
1257
1278
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
1279
- # inference. See Context and ContextObjects above.
1280
- @stories .command (name = 'show' ) # type: ignore[arg-type]
1258
+ @stories .command (name = 'show' )
1281
1259
@pass_context
1282
1260
@filtering_options_long
1283
1261
@story_flags_filter_options
1284
1262
@verbosity_options
1285
1263
def stories_show (
1286
1264
context : Context ,
1265
+ / ,
1287
1266
implemented : bool ,
1288
1267
verified : bool ,
1289
1268
documented : bool ,
@@ -1363,9 +1342,7 @@ def stories_create(
1363
1342
)
1364
1343
1365
1344
1366
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
1367
- # inference. See Context and ContextObjects above.
1368
- @stories .command (name = 'coverage' ) # type: ignore[arg-type]
1345
+ @stories .command (name = 'coverage' )
1369
1346
@option ('--docs' , is_flag = True , help = 'Show docs coverage.' )
1370
1347
@option ('--test' , is_flag = True , help = 'Show test coverage.' )
1371
1348
@option ('--code' , is_flag = True , help = 'Show code coverage.' )
@@ -1375,6 +1352,7 @@ def stories_create(
1375
1352
@verbosity_options
1376
1353
def stories_coverage (
1377
1354
context : Context ,
1355
+ / ,
1378
1356
code : bool ,
1379
1357
test : bool ,
1380
1358
docs : bool ,
@@ -1541,16 +1519,15 @@ def stories_export(
1541
1519
)
1542
1520
1543
1521
1544
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
1545
- # inference. See Context and ContextObjects above.
1546
- @stories .command (name = "id" ) # type: ignore[arg-type]
1522
+ @stories .command (name = "id" )
1547
1523
@pass_context
1548
1524
@filtering_options_long
1549
1525
@story_flags_filter_options
1550
1526
@verbosity_options
1551
1527
@force_dry_options
1552
1528
def stories_id (
1553
1529
context : Context ,
1530
+ / ,
1554
1531
implemented : bool ,
1555
1532
verified : bool ,
1556
1533
documented : bool ,
@@ -1688,12 +1665,11 @@ def clean(
1688
1665
raise SystemExit (exit_code )
1689
1666
1690
1667
1691
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
1692
- # inference. See Context and ContextObjects above.
1693
- @clean .result_callback () # type: ignore[arg-type]
1668
+ @clean .result_callback ()
1694
1669
@pass_context
1695
1670
def perform_clean (
1696
1671
click_context : Context ,
1672
+ / ,
1697
1673
commands : Any ,
1698
1674
* args : Any ,
1699
1675
** kwargs : Any ,
@@ -1848,14 +1824,12 @@ def clean_guests(
1848
1824
)
1849
1825
1850
1826
1851
- # ignore[arg-type]: click code expects click.Context, but we use our own type for better type
1852
- # inference. See Context and ContextObjects above.
1853
- @clean .command (name = 'images' ) # type: ignore[arg-type]
1827
+ @clean .command (name = 'images' )
1854
1828
@pass_context
1855
1829
@workdir_root_options
1856
1830
@verbosity_options
1857
1831
@dry_options
1858
- def clean_images (context : Context , workdir_root : Optional [Path ], ** kwargs : Any ) -> None :
1832
+ def clean_images (context : Context , / , workdir_root : Optional [Path ], ** kwargs : Any ) -> None :
1859
1833
"""
1860
1834
Remove images of supported provision methods.
1861
1835
0 commit comments