Skip to content

Commit 4dbbae7

Browse files
committed
Tell pyright we're using 3.12
1 parent 54805c8 commit 4dbbae7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

views/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def _type_check_with_pyright(cls, code: str) -> TypeCheckResult:
111111
# TODO: switch to json output to simplify output parsing.
112112
# https://microsoft.github.io/pyright/#/command-line?id=json-output
113113
raw_result = subprocess.run(
114-
["pyright", temp.name], capture_output=True, text=True
114+
["pyright", "--pythonversion", "3.12", temp.name],
115+
capture_output=True,
116+
text=True,
115117
).stdout
116118
error_lines: list[str] = []
117119

0 commit comments

Comments
 (0)