Skip to content

Commit

Permalink
suppress new partial Any errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Feb 12, 2024
1 parent 0992c57 commit cecc979
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions basedpyright/run_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:]]))
4 changes: 2 additions & 2 deletions get_version.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
8 changes: 4 additions & 4 deletions pdm_build.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit cecc979

Please sign in to comment.