This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
How to enable mypy
to detect the current virtualenv I am using?
#1596
Unanswered
ChenZhongPu
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This can be a good improvement for In mypy.lua, local virtual = os.getenv("VIRTUAL_ENV") or os.getenv("CONDA_DEFAULT_ENV") or "/usr"
-- below line 27
"--python-executable=" .. virtual .. "/bin/python3", |
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
-
By default,
mypy
only checks the third-party libraries in the same virtualenv.How to enable it to detect the current virtualenv I am using and then pass the correct path through
--python-executable
?Beta Was this translation helpful? Give feedback.
All reactions