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
With every mypy release I give it a try, this release is no different and the fact that environment variables are now taken into account in the config file will be very nice to find the python from the virtual environment.
And if I try to add this path to MYPYPATH it won't work either:
(tryton-trunk) nicoe@mirabelle:projets/tryton/tryton-env/tryton-env% MYPYPATH=/home/nicoe/.local/share/virtualenvs/tryton-trunk/lib/python3.7/site-packages/sql mypy trytond/trytond/model/modelsql.py
/home/nicoe/.local/share/virtualenvs/tryton-trunk/lib/python3.7/site-packages is in the MYPYPATH. Please remove it.
See https://mypy.readthedocs.io/en/latest/running_mypy.html#how-mypy-handles-imports for more info
Am I missing anything?
The text was updated successfully, but these errors were encountered:
Since I saw some "No library stub file for module 'lxml'", I though mypy was not able to find the python-sql library while it was able to find the lxml one.
Hello,
With every mypy release I give it a try, this release is no different and the fact that environment variables are now taken into account in the config file will be very nice to find the python from the virtual environment.
So this is my config file:
When I execute this command:
(the complete file is available there: https://github.com/tryton/trytond/blob/develop/trytond/model/modelsql.py)
It won't find the
sql
package:Although the module is available through a simple import:
And if I try to add this path to MYPYPATH it won't work either:
Am I missing anything?
The text was updated successfully, but these errors were encountered: