Replies: 1 comment 1 reply
-
I am able to work around this by avoiding editable (for the dep): Basically, doing > pip freeze
-e git+ssh://[email protected]/dimaqq/some-dep.git@50ad99...#egg=some_dep` And somehow pyright has trouble with venv in this state. If I however do I end up with this: > pip freeze
some_dep @ file:///code/some-dep and pyright can find the types. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Baseline:
uv pip install some_dep
(venv) pyright my_code/some_file.py
This works fine, pyright resolved some_dep import; I can
typing.reveal_type(some_dep.blah.blah)
.I'm working on improving devx and trying to improve this dependency's type hints. So i'm trying:
git clone repo-for-some-dep
git switch -c my-branch
uv pip install -e /path/to/repo_for_some_dep
(venv) pyright my_code/some_file.py
And pyright reports that
import some_dep.blah
cannot be resolved.Meanwhile, code works at run time.
Am I doing something obviously wrong?
Is there something special to watch out for?
Beta Was this translation helpful? Give feedback.
All reactions