|
40 | 40 | class JITCompileFinder(importlib.abc.MetaPathFinder): |
41 | 41 | """An import finder for executing the just-in-time (JIT) compilation.""" |
42 | 42 |
|
43 | | - def find_spec(self: Self, fullname, path, target=None) -> None: # noqa: ANN001, ARG002 |
| 43 | + def find_spec( # type: ignore[no-untyped-def] |
| 44 | + self: Self, fullname, path, target=None # noqa: ANN001, ARG002 |
| 45 | + ) -> None: |
44 | 46 | """ |
45 | 47 | Find the spec of the specified module. |
46 | 48 |
|
@@ -96,7 +98,7 @@ def find_spec(self: Self, fullname, path, target=None) -> None: # noqa: ANN001, |
96 | 98 |
|
97 | 99 | def _load(module_name: str, config: ResolvedConfig) -> None: |
98 | 100 | if not isinstance(config, ResolvedConfig): |
99 | | - msg = f"Invalid type of configuration: expected 'Config', but got '{config.__class__.__name__}'" |
| 101 | + msg = f"Invalid type of configuration: expected 'Config', but got '{config.__class__.__name__}'" # type: ignore[unreachable] |
100 | 102 | raise TypeError(msg) |
101 | 103 |
|
102 | 104 | (config.full_build_directory / "charonload").mkdir(parents=True, exist_ok=True) |
@@ -500,7 +502,7 @@ def add(self: Self, d: pathlib.Path) -> None: |
500 | 502 | @staticmethod |
501 | 503 | def _clear(directories: dict[pathlib.Path, Any]) -> None: |
502 | 504 | for handler in directories.values(): |
503 | | - handler.close() # type: ignore[attr-defined] |
| 505 | + handler.close() |
504 | 506 |
|
505 | 507 |
|
506 | 508 | _windows_dll_directories: dict[pathlib.Path, Any] = {} |
|
0 commit comments