You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm having a problem coniguring mypy plugin to work with my project.
I'm having this error in the mypy shell:
File "/path/to/project/src/myproject/config.py", line 123, in <module>
API_ID = int(os.getenv('API_ID'))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
This is because I have a project with settings configured by env variables.
We need to use pythonExtension.environments.getEnvironmentVariables API to get the full set of environment variables and send the diff to the server, per-workspace.
Hello, I'm having a problem coniguring mypy plugin to work with my project.
I'm having this error in the mypy shell:
This is because I have a project with settings configured by env variables.
My directory settings:
where
.env.test
contains:Tried switching to
"mypy-type-checker.path"
, but it didn't help.Temporary workaround:
Create file
venvrun.sh
:and in
settings.json
do:The text was updated successfully, but these errors were encountered: