Skip to content

Commit 00b25c6

Browse files
committed
chore: remove some mypy statements
1 parent 586d463 commit 00b25c6

File tree

15 files changed

+15
-48
lines changed

15 files changed

+15
-48
lines changed

packages/analyze/src/robotcode/analyze/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
if __name__ == "__main__":
44
from .cli import analyze
55

6-
sys.exit(analyze()) # type: ignore[misc]
6+
sys.exit(analyze())

packages/analyze/src/robotcode/analyze/cli/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
from ..__version__ import __version__
66

7-
# mypy: disable-error-code="misc, arg-type, attr-defined"
8-
97

108
@click.command(
119
context_settings={

packages/debugger/src/robotcode/debugger/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
def main() -> None:
22
from .cli import debug
33

4-
debug(windows_expand_args=False) # type: ignore[misc]
4+
debug(windows_expand_args=False)
55

66

77
if __name__ == "__main__":

packages/debugger/src/robotcode/debugger/cli.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
DEBUGPY_DEFAULT_PORT = 5678
1818

1919

20-
# mypy: disable-error-code="misc, arg-type, attr-defined"
21-
22-
2320
@click.command(
2421
context_settings={
2522
"allow_extra_args": True,

packages/debugger/src/robotcode/debugger/launcher/cli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
LAUNCHER_DEFAULT_PORT = 6611
1616

17-
# mypy: disable-error-code="misc, arg-type, attr-defined"
18-
1917

2018
@click.command(
2119
add_help_option=True,

packages/language_server/src/robotcode/language_server/cli.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ def run_server(
3434
server.run()
3535

3636

37-
# mypy: disable-error-code="misc, arg-type, attr-defined"
38-
39-
4037
@click.command(
4138
add_help_option=True,
4239
epilog='Use "-- --help" to see `robot` help.',

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ def main(self, arguments: Any, **options: Any) -> Any:
4040
return super().main(arguments, **options)
4141

4242

43-
# mypy: disable-error-code="misc, arg-type, attr-defined"
44-
45-
4643
@click.command(
4744
context_settings={
4845
"allow_extra_args": True,

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ def main(self, arguments: Any, **options: Any) -> Any:
4040
return super().main(arguments, **options)
4141

4242

43-
# mypy: disable-error-code="misc, arg-type, attr-defined"
44-
45-
4643
@click.command(
4744
context_settings={
4845
"allow_extra_args": True,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def parse_arguments(self, cli_args: Any) -> Any:
5757
return options, arguments
5858

5959

60-
# mypy: disable-error-code="misc, arg-type, attr-defined"
60+
# mypy: disable-error-code="arg-type"
6161

6262
ROBOT_OPTIONS: Set[click.Command] = {
6363
click.option("--by-longname", type=str, multiple=True, help="Select tests/tasks or suites by longname."),

0 commit comments

Comments
 (0)