@@ -281,9 +281,6 @@ def visit_test(self, test: TestCase) -> None:
281281 self .statistics .tests += 1
282282
283283
284- # mypy: disable-error-code="misc, arg-type, attr-defined"
285-
286-
287284@click .group (invoke_without_command = False )
288285@click .option (
289286 "--read-from-stdin" , is_flag = True , help = "Read file contents from stdin. This is an internal option." , hidden = True
@@ -432,7 +429,7 @@ def handle_options(
432429 raise UnknownError ("Unexpected error happened." )
433430
434431
435- @discover .command (
432+ @discover .command ( # type: ignore[attr-defined]
436433 context_settings = {
437434 "allow_extra_args" : True ,
438435 "ignore_unknown_options" : True ,
@@ -492,7 +489,7 @@ def print(item: TestItem, indent: int = 0) -> Iterable[str]:
492489 app .print_data (ResultItem ([collector .all ], diagnostics ), remove_defaults = True )
493490
494491
495- @discover .command (
492+ @discover .command ( # type: ignore[attr-defined]
496493 context_settings = {
497494 "allow_extra_args" : True ,
498495 "ignore_unknown_options" : True ,
@@ -539,7 +536,7 @@ def print(items: List[TestItem]) -> Iterable[str]:
539536 app .print_data (ResultItem (collector .tests , diagnostics ), remove_defaults = True )
540537
541538
542- @discover .command (
539+ @discover .command ( # type: ignore[attr-defined]
543540 context_settings = {
544541 "allow_extra_args" : True ,
545542 "ignore_unknown_options" : True ,
@@ -591,7 +588,7 @@ class TagsResult:
591588 tags : Dict [str , List [TestItem ]]
592589
593590
594- @discover .command (
591+ @discover .command ( # type: ignore[attr-defined]
595592 context_settings = {
596593 "allow_extra_args" : True ,
597594 "ignore_unknown_options" : True ,
@@ -673,7 +670,7 @@ class Info:
673670 system_version : str
674671
675672
676- @discover .command (
673+ @discover .command ( # type: ignore[attr-defined]
677674 add_help_option = True ,
678675)
679676@pass_application
0 commit comments