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
Make tests/ mypy-clean under strict mode with a tests-only override
Configure mypy to also scan tests/ alongside src/ once
explicit_package_bases and mypy_path are set so the duplicate-conftest
path collision is resolved. A new tests.* override disables four
error codes that flag legitimate pytest patterns (method-assign for
monkey-patching, no-untyped-def/no-untyped-call for fixture-style
helpers, comparison-overlap for IntEnum-equals-int reference pins)
— production code keeps strict checks.
Concrete fixes in tests/:
- Add per-line type-ignore comments for legitimate test patterns
(negative-test types, fake conn classes typed as DqliteConnection,
monkey-patches that mypy can't follow through dynamic attribute
assignment).
- Drop redundant per-line type-ignore comments now that the override
covers the corresponding error codes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments