Skip to content

Commit 3000f9c

Browse files
committed
Fix lints
1 parent a2b556e commit 3000f9c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

backends/cortex_m/test/misc/test_compile_config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ def test_explicit_isa_override(self):
7979
assert config.isa == "scalar"
8080

8181

82-
@pytest.mark.skipif(
83-
not _HAS_CMSIS_NN, reason="cortex_m passes require cmsis_nn"
84-
)
82+
@pytest.mark.skipif(not _HAS_CMSIS_NN, reason="cortex_m passes require cmsis_nn")
8583
class TestPassManagerConfigWiring:
8684
def test_default_config_is_m55(self):
8785
from executorch.backends.cortex_m.passes.cortex_m_pass_manager import (

backends/cortex_m/test/tester.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, config: Optional[CortexMCompileConfig] = None):
5656
# Pre-bind the config so it flows through that 2-arg call.
5757
super().__init__(
5858
partial(CortexMPassManager, config=config), # type: ignore[arg-type]
59-
CortexMPassManager.pass_list,
59+
CortexMPassManager.pass_list, # type: ignore[arg-type]
6060
)
6161

6262

@@ -89,7 +89,9 @@ def __init__(
8989
else:
9090
resolved_example_inputs = example_inputs
9191
config = config or CortexMCompileConfig()
92-
stage_classes = dict(cortex_m_stage_classes)
92+
stage_classes: dict[StageType, Callable[..., Any]] = dict(
93+
cortex_m_stage_classes
94+
)
9395
stage_classes[StageType.RUN_PASSES] = lambda: CortexMRunPasses(config=config)
9496
super().__init__(module, resolved_example_inputs, stage_classes)
9597

0 commit comments

Comments
 (0)