Skip to content

Commit b8d6d7b

Browse files
xr843claude
andcommitted
fix: add type annotation to fix pyright reportUnknownLambdaType
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 390c0d9 commit b8d6d7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/cli/test_utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,9 @@ def fake_which(cmd: str) -> str | None:
9191
def test_get_npx_returns_none_when_npx_missing(monkeypatch: pytest.MonkeyPatch):
9292
"""Should give None if every candidate is absent from PATH."""
9393
monkeypatch.setattr(sys, "platform", "win32", raising=False)
94-
monkeypatch.setattr(shutil, "which", lambda cmd: None)
94+
95+
def fake_which(cmd: str) -> str | None:
96+
return None
97+
98+
monkeypatch.setattr(shutil, "which", fake_which)
9599
assert _get_npx_command() is None

0 commit comments

Comments
 (0)