Skip to content

Commit 573c5a5

Browse files
Eh just ignore for now
1 parent a6f85a6 commit 573c5a5

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

tools/pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ linters = [
8080
"psutil",
8181
"pyudev",
8282
"beautifulsoup4",
83-
"lxml",
84-
"types-pywin32",
83+
"lxml"
8584
]
8685
greentea = [
8786
## Additional requirements to install into the Mbed environment when running Greentea tests
@@ -253,4 +252,8 @@ reportImplicitStringConcatenation = false
253252

254253
# Allow isinstance() even when it seems unneccessary based on type annotations.
255254
# This call is useful to check that the runtime types match the annotations.
256-
reportUnnecessaryIsInstance = false
255+
reportUnnecessaryIsInstance = false
256+
257+
# Some ignore comments are only needed on specific platforms, so failing due to unneeded ignore
258+
# comments creates an impossible situation
259+
reportUnnecessaryTypeIgnoreComment = false

tools/python/mbed_tools/cli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def invoke(self, ctx: click.Context) -> None:
4848
help="Set the verbosity level, enter multiple times to increase verbosity.",
4949
)
5050
@click.option("-t", "--traceback", is_flag=True, show_default=True, help="Show a traceback when an error is raised.")
51-
def cli(verbose: int, _traceback: bool) -> None:
51+
def cli(verbose: int, traceback: bool) -> None: # noqa: ARG001 # pyright: ignore[reportUnusedParameter]
5252
"""Command line tool for interacting with Mbed OS."""
5353
# note: traceback parameter not used here but is accessed through
5454
# click.context.params in GroupWithExceptionHandling

tools/python/mbed_tools/devices/_internal/windows/component_descriptor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from abc import ABC, abstractmethod
99
from typing import Any, Generator, List, NamedTuple, Optional, cast
1010

11-
import pythoncom
12-
import win32com.client
11+
import pythoncom # pyright: ignore[reportMissingModuleSource]
12+
import win32com.client # pyright: ignore[reportMissingModuleSource]
1313
from typing_extensions import override
1414

1515
from mbed_tools.devices._internal.windows.component_descriptor_utils import UNKNOWN_VALUE, is_undefined_data_object

tools/python/mbed_tools/devices/_internal/windows/device_instance_id.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from types import TracebackType
1111
from typing import Any, Optional
1212

13-
import win32api
14-
import win32con
13+
import win32api # pyright: ignore[reportMissingModuleSource]
14+
import win32con # pyright: ignore[reportMissingModuleSource]
1515

1616
from mbed_tools.devices._internal.exceptions import OperatingSystemError
1717

tools/python/mbed_tools/devices/_internal/windows/volume_set.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
from enum import Enum
1717
from typing import List, NamedTuple
1818

19-
import win32.win32api
20-
import win32.win32file
19+
import win32.win32api # pyright: ignore[reportMissingModuleSource]
20+
import win32.win32file # pyright: ignore[reportMissingModuleSource]
2121

2222
from mbed_tools.devices._internal.windows.component_descriptor_utils import UNKNOWN_VALUE
2323

0 commit comments

Comments
 (0)