pyright
pyright copied to clipboard
Imports resolution in Rye projects broke in 1.1.371
Steps to reproduce: install rye, then for instance:
mkdir repro
cd repro
rye init
rye add quart
echo "import quart" > src/repro/foo.py
rye install pyright
pyright
This worked up to version 1.1.370, with 1.1.371 you get:
error: Import "quart" could not be resolved
I suppose the reason is #8341, because the behavior of the Python interpreter changes depending on the current path.
Is there a way to disable this sandboxing of the interpreter?
(I think this is an issue with pyright and not Rye but I have still opened a bug on their end as well.)