Skip to content

Commit 0f52d2e

Browse files
committed
style: remove unneeded #type: ignores for click
1 parent 110a769 commit 0f52d2e

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

packages/runner/src/robotcode/runner/cli/discover/discover.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def handle_options(
429429
raise UnknownError("Unexpected error happened.")
430430

431431

432-
@discover.command( # type: ignore[attr-defined]
432+
@discover.command(
433433
context_settings={
434434
"allow_extra_args": True,
435435
"ignore_unknown_options": True,
@@ -489,7 +489,7 @@ def print(item: TestItem, indent: int = 0) -> Iterable[str]:
489489
app.print_data(ResultItem([collector.all], diagnostics), remove_defaults=True)
490490

491491

492-
@discover.command( # type: ignore[attr-defined]
492+
@discover.command(
493493
context_settings={
494494
"allow_extra_args": True,
495495
"ignore_unknown_options": True,
@@ -536,7 +536,7 @@ def print(items: List[TestItem]) -> Iterable[str]:
536536
app.print_data(ResultItem(collector.tests, diagnostics), remove_defaults=True)
537537

538538

539-
@discover.command( # type: ignore[attr-defined]
539+
@discover.command(
540540
context_settings={
541541
"allow_extra_args": True,
542542
"ignore_unknown_options": True,
@@ -588,7 +588,7 @@ class TagsResult:
588588
tags: Dict[str, List[TestItem]]
589589

590590

591-
@discover.command( # type: ignore[attr-defined]
591+
@discover.command(
592592
context_settings={
593593
"allow_extra_args": True,
594594
"ignore_unknown_options": True,
@@ -670,7 +670,7 @@ class Info:
670670
system_version: str
671671

672672

673-
@discover.command( # type: ignore[attr-defined]
673+
@discover.command(
674674
add_help_option=True,
675675
)
676676
@pass_application

src/robotcode/cli/commands/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def config() -> None:
2525
"""
2626

2727

28-
@config.command # type: ignore[attr-defined]
28+
@config.command
2929
@click.option(
3030
"-s", "--single", "single", is_flag=True, default=False, help="Shows single files, not the combined config."
3131
)
@@ -69,7 +69,7 @@ def show(
6969
raise UnknownError(str(e)) from e
7070

7171

72-
@config.command # type: ignore[attr-defined]
72+
@config.command
7373
@click.argument("paths", type=click.Path(exists=True, path_type=Path), nargs=-1, required=False)
7474
@pass_application
7575
def files(
@@ -120,7 +120,7 @@ def files(
120120
raise UnknownError(str(e)) from e
121121

122122

123-
@config.command # type: ignore[attr-defined]
123+
@config.command
124124
@click.argument("paths", type=click.Path(exists=True, path_type=Path), nargs=-1, required=False)
125125
@pass_application
126126
def root(
@@ -163,7 +163,7 @@ def root(
163163
app.print_data(result)
164164

165165

166-
@config.group # type: ignore[attr-defined]
166+
@config.group
167167
@pass_application
168168
def info(app: Application) -> None:
169169
"""Shows informations about possible configuration settings."""

src/robotcode/cli/commands/profiles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def profiles() -> None:
1717
"""View profile informations."""
1818

1919

20-
@profiles.command # type: ignore[attr-defined]
20+
@profiles.command
2121
@click.option(
2222
"-n", "--no-evaluate", "no_evaluate", is_flag=True, default=False, help="Don't evaluate expressions in the profile."
2323
)
@@ -45,7 +45,7 @@ def show(
4545
raise UnknownError(str(e)) from e
4646

4747

48-
@profiles.command # type: ignore[attr-defined]
48+
@profiles.command
4949
@click.argument("paths", type=click.Path(exists=True, path_type=Path), nargs=-1, required=False)
5050
@pass_application
5151
def list(

0 commit comments

Comments
 (0)