Platform configuration
python_version
(string)- Specifies the Python version used to parse and check the targetprogram. The string should be in the format
DIGIT.DIGIT
–for example2.7
. The default is the version of the Pythoninterpreter used to run mypy.
This option may only be set in the global section ([mypy]
).
platform
(string)- Specifies the OS platform for the target program, for example
darwin
orwin32
(meaning OS X or Windows, respectively).The default is the current platform as revealed by Python’ssys.platform
variable.
This option may only be set in the global section ([mypy]
).
always_true
(comma-separated list of strings)- Specifies a list of variables that mypy will treat ascompile-time constants that are always true.
always_false
(comma-separated list of strings)- Specifies a list of variables that mypy will treat ascompile-time constants that are always false.