Skip to content

Commit 52cac91

Browse files
committed
Fix MYPY type ignore comments for dynamic imports.
Change type: ignore[import-not-found] to type: ignore[import] to match MYPY's expected error code for these dynamic module imports.
1 parent 03fd99c commit 52cac91

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

kernels/test/gen_supported_features_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import unittest
99

1010
import yaml
11-
from executorch.kernels.test.gen_supported_features import ( # type: ignore[import-not-found]
11+
from executorch.kernels.test.gen_supported_features import ( # type: ignore[import]
1212
generate_definition,
1313
generate_header,
1414
)

profiler/profiler_results_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import argparse
88
import sys
99

10-
from executorch.profiler.parse_profiler_results import ( # type: ignore[import-not-found]
10+
from executorch.profiler.parse_profiler_results import ( # type: ignore[import]
1111
deserialize_profile_results,
1212
mem_profile_table,
1313
profile_aggregate_framework_tax,

test/models/generate_linear_out_bundled_program.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
from executorch.exir.passes import MemoryPlanningPass, ToOutVarPass
2828
from executorch.exir.print_program import pretty_print
2929

30-
from executorch.test.models.linear_model import ( # type: ignore[import-not-found]
31-
LinearModel,
32-
)
30+
from executorch.test.models.linear_model import LinearModel # type: ignore[import]
3331
from torch.export import export
3432

3533

0 commit comments

Comments
 (0)