Skip to content

chore(deps-dev): bump mypy to 2.4.0 and fix new type errors (supersedes #163) - #169

Merged
TexasCoding merged 2 commits into
mainfrom
maint/163-mypy-2-4
Oct 15, 2026
Merged

TexasCoding merged 2 commits into
mainfrom
maint/163-mypy-2-4

Conversation

@TexasCoding

Copy link
Copy Markdown
Owner

Supersedes Dependabot #163 (mypy 1.17.1 -> 2.4.0), whose lint job failed with 14 mypy errors:

  • statistics/health.py: 13x Unused "type: ignore" comment [unused-ignore]
  • sessions/filtering.py:355: Incompatible types in assignment (expression has type "_UTCclass | StaticTzInfo | DstTzInfo", variable has type "None")

Changes (typing only, no runtime behavior change):

  • Remove the now-unused # type: ignore comments in health.py.
  • Annotate SessionFilterMixin._market_tz: tzinfo | None = None.
  • uv.lock: mypy 2.4.0 (+ new deps ast-serialize, librt).
  • CHANGELOG [Unreleased] -> Internal.

Local gates on this branch: ruff check src clean, ruff format --check src clean, uv run mypy src -> Success: no issues found in 118 source files; uv run pytest 3287 passed (1 local-only tzdata failure that passes in CI).

@TexasCoding
TexasCoding merged commit 5672c28 into main Oct 15, 2026
7 checks passed
@TexasCoding
TexasCoding deleted the maint/163-mypy-2-4 branch October 16, 2026 11:04
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