Skip to content

Mypy tests failure in CI #10791

Closed
Closed

Description

@shoyer

What is your issue?

Recent PRs like #10785 are failing mypy tests, which seems to be an issue on main.

I'm not quite sure what changed in our CI setup, but we're still using mypy=1.18.1. I cannot reproduce the failures on my local machine.

CC @max-sixty

Activity

  1. added
    needs triage
    on Sep 26, 2025
  2. added a commit that references this issue on Sep 26, 2025
    24e36dc
  3. max-sixty commented on Sep 26, 2025

    @max-sixty
    Collaborator

    The root cause of this issue was a mismatch between CI and local development environments:

    • CI: Uses conda-forge with numpy 2.3.3 and numba 0.62 (which supports numpy 2.3)
    • Local (uv): Was constrained to numpy<2.3 due to an outdated numba compatibility comment in pyproject.toml

    NumPy 2.3's stricter type stubs revealed legitimate type issues that needed fixing. I've opened PR #10792 to address this.

    This type of environment divergence would be prevented by using uv or pixi for CI, as discussed in #10661 - those tools would ensure CI uses the exact same dependency versions specified in the lock file, eliminating these "works locally but fails in CI" issues.

    [This is Claude Code on behalf of Maximilian Roos]

  4. added a commit that references this issue on Sep 26, 2025
    d2ba1fe
  5. shoyer commented on Sep 26, 2025

    @shoyer
    MemberAuthor

    Thanks @max-sixty !!!

  6. max-sixty commented on Sep 26, 2025

    @max-sixty
    Collaborator

    ✅ Confirmed fixed - the mypy tests are passing on main after #10792 was merged.

    The Windows test failures currently showing on main are unrelated (flaky Zarr backend file permission issues), not related to the mypy/typing fixes.

    [This is Claude Code on behalf of Maximilian Roos]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions