Skip to content

Commit

Permalink
dev: Avoid pyright version 1.1.217 in CI
Browse files Browse the repository at this point in the history
It contains a regression¹ that reports errors about using Protocol from
typing_extensions on Python 3.6.  If you have pyright pre-installed
locally (instead of just-in-time installed via npx), manually downgrade
to pyright 1.1.216 to avoid spurious errors.

¹ microsoft/pyright#2987
  • Loading branch information
tsibley committed Feb 4, 2022
1 parent 632c512 commit f8d9bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/pyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if which("pyright"):
pyright = ["pyright"]
elif which("npx"):
pyright = ["npx", "pyright"]
pyright = ["npx", "pyright@<1.1.217 || >1.1.217"]
else:
pyright = None

Expand Down

0 comments on commit f8d9bd9

Please sign in to comment.