Skip to content

Pin mypy below 2.0 while the template targets Python 3.9 #44

Description

@konard

Problem

The template declares requires-python = ">=3.9", configures python_version = "3.9", and currently installs mypy>=1.13.0 without an upper bound.

Fresh environments now resolve mypy 2.x. Running mypy src with mypy 2.1 through 2.3 emits:

pyproject.toml: [mypy]: python_version: Python 3.9 is not supported (must be 3.10 or higher)

This makes the CI type-check step noisy and no longer validates the package minimum version as intended.

Reproduction

pip install -e ".[dev]"
mypy src

Suggested fix

Until the template drops Python 3.9, constrain the development dependency to mypy>=1.13.0,<2.0. I verified mypy 1.19.1 checks the Python 3.9 target without the warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions