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
On Windows (where the default encoding for open is usually not UTF-8), with a pyproject.toml file containing the mypy configuration, mypy crashes due to being unable to decode unicode characters.
The TOML specification requires files to be encoded in UTF-8, so it is valid to assume tools will correctly parse files containing unicode characters.
Crash Report
On Windows (where the default encoding for
open
is usually not UTF-8), with apyproject.toml
file containing the mypy configuration, mypy crashes due to being unable to decode unicode characters.The TOML specification requires files to be encoded in UTF-8, so it is valid to assume tools will correctly parse files containing unicode characters.
Traceback
This is caused by the following function, particularly the call to
open
on line 511 without an encoding being specified.mypy/mypy/build.py
Lines 503 to 523 in 5c4aea3
To Reproduce
pyproject.toml
file content:Your Environment
mypy.ini
(and other config files): None (emptytool.mypy
section inpyproject.toml
)The text was updated successfully, but these errors were encountered: