Skip to content

Commit 7bb6c2f

Browse files
fix(types): type payload dict in incompatibleWith installer test
Satisfies pyright reportArgumentType for list values in the JSON payload. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 00b314c commit 7bb6c2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/create-python-app-core/tests/test_installer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _ext(tmp: Path, name: str, *, incompatible: list[str] | None = None) -> str:
2222
root = tmp / name
2323
(root / "template").mkdir(parents=True)
2424
(root / "template" / f"{name}.txt").write_text(name)
25-
payload = {"name": name}
25+
payload: dict[str, object] = {"name": name}
2626
if incompatible:
2727
payload["incompatibleWith"] = incompatible
2828
import json

0 commit comments

Comments
 (0)