Skip to content

🔧 build(type): migrate from mypy to ty#192

Merged
gaborbernat merged 1 commit intopytest-dev:mainfrom
gaborbernat:ty
Feb 11, 2026
Merged

🔧 build(type): migrate from mypy to ty#192
gaborbernat merged 1 commit intopytest-dev:mainfrom
gaborbernat:ty

Conversation

@gaborbernat
Copy link
Collaborator

mypy is being deprecated in favor of ty, which provides significantly faster type checking with better performance characteristics and more accurate type inference. ⚡

The migration replaces mypy==1.19.1 with ty==0.0.16 in the type checking tox environment. The command changes from running mypy separately on src and tests to a single ty check invocation with concise output format and warnings treated as errors.

Configured ty to target Python 3.14 specifically to align with the type checking environment and avoid false positives from conditional imports like tomli that only apply to older Python versions. 🐍

mypy is being deprecated in favor of ty, which provides faster type
checking with better performance characteristics. ty also offers more
accurate type inference and improved developer experience.

Configured ty to use Python 3.14 as the target version to align with
the type checking environment and avoid false positives from conditional
imports that only apply to older Python versions.

Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
@gaborbernat gaborbernat merged commit 20f4890 into pytest-dev:main Feb 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant