diff --git a/basedpyright/run_node.py b/basedpyright/run_node.py index 08e9369a8..f6de1a9aa 100644 --- a/basedpyright/run_node.py +++ b/basedpyright/run_node.py @@ -3,8 +3,8 @@ import sys from pathlib import Path -from nodejs import node +from nodejs.node import call # pyright:ignore[reportAny] def run(script_name: str): - sys.exit(node.call([Path(__file__).parent / f"{script_name}.js", *sys.argv[1:]])) + sys.exit(call([Path(__file__).parent / f"{script_name}.js", *sys.argv[1:]])) diff --git a/get_version.py b/get_version.py index d134ddc25..c3e6c0497 100644 --- a/get_version.py +++ b/get_version.py @@ -1,8 +1,8 @@ from __future__ import annotations -from json import loads +from json import loads # pyright:ignore[reportAny] from pathlib import Path -from typing import TypedDict, cast +from typing import TypedDict, cast # pyright:ignore[reportAny] class LernaJson(TypedDict): diff --git a/pdm_build.py b/pdm_build.py index dc42a67d7..3cd108d6c 100644 --- a/pdm_build.py +++ b/pdm_build.py @@ -1,14 +1,14 @@ from __future__ import annotations -from json import loads +from json import loads # pyright:ignore[reportAny] from pathlib import Path -from shutil import copyfile, copytree -from typing import TYPE_CHECKING, TypedDict, cast +from shutil import copyfile, copytree # pyright:ignore[reportAny] +from typing import TYPE_CHECKING, TypedDict, cast # pyright:ignore[reportAny] # https://github.com/samwillis/nodejs-pypi/pull/23 if TYPE_CHECKING: # https://github.com/astral-sh/ruff/issues/9528 - from subprocess import run # noqa: S404 + from subprocess import run # noqa: S404 # pyright:ignore[reportAny] else: from nodejs.npm import run