python-project-template icon indicating copy to clipboard operation
python-project-template copied to clipboard

Set python version for mypy

Open hombit opened this issue 7 months ago • 0 comments

It looks like mypy started to check everything assuming the interpreter python version, not the project python version. Could we please add this block to pyproject.toml:

[tool.mypy]
python_version = "{min_python_version}"

where min_python_version is e.g. 3.10.

It was tested with nested-pandas: https://github.com/lincc-frameworks/nested-pandas/pull/303

hombit avatar Jul 03 '25 15:07 hombit