feat: switch to ty for typechecking (#5659)
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
faster and smaller Co-authored-by: Darragh Elliott <me@delliott.net> Reviewed-on: #5659 Co-authored-by: delliott <delliott@fsfe.org> Co-committed-by: delliott <delliott@fsfe.org>
This commit was merged in pull request #5659.
This commit is contained in:
@@ -30,9 +30,9 @@ def prepare_early_subdirectories(
|
||||
sys.path.append(early_subdir_path_resolved)
|
||||
# Ignore this very sensible warning, as we do evil things
|
||||
# here for out subdir scripts
|
||||
import early_subdir # noqa: PLC0415 # type: ignore # pyright: ignore [reportUnknownMemberType]
|
||||
import early_subdir # noqa: PLC0415 # type: ignore
|
||||
|
||||
early_subdir.run( # pyright: ignore [reportUnknownMemberType]
|
||||
early_subdir.run(
|
||||
global_build_config.source, global_build_config.processes, subdir_path
|
||||
)
|
||||
# Remove its path from where things can be imported
|
||||
|
||||
@@ -36,9 +36,9 @@ def prepare_subdirectories(
|
||||
sys.path.append(str(subdir_path.resolve()))
|
||||
# Ignore this very sensible warning, as we do evil things
|
||||
# here for out subdir scripts
|
||||
import subdir # noqa: PLC0415 # pyright: ignore [reportMissingImports]
|
||||
import subdir # noqa: PLC0415 # type: ignore
|
||||
|
||||
subdir.run(source, languages, processes, subdir_path) # pyright: ignore [reportUnknownMemberType]
|
||||
subdir.run(source, languages, processes, subdir_path)
|
||||
# Remove its path from where things can be imported
|
||||
sys.path.remove(str(subdir_path.resolve()))
|
||||
# Remove it from loaded modules
|
||||
|
||||
@@ -10,7 +10,7 @@ import logging
|
||||
import shutil
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import minify # pyright: ignore [reportMissingTypeStubs]
|
||||
import minify
|
||||
|
||||
if TYPE_CHECKING:
|
||||
import multiprocessing.pool
|
||||
|
||||
Reference in New Issue
Block a user