Skip to content

Type checking fails due to new version of numpy #83

Closed

Description

Run mypy .
  mypy .
  shell: /home/runner/work/_temp/setup-micromamba/micromamba-shell {0}
  env:
    MAMBA_ROOT_PREFIX: /home/runner/micromamba
    MAMBA_EXE: /home/runner/micromamba-bin/micromamba
    CONDARC: /home/runner/work/_temp/setup-micromamba/.condarc
/home/runner/micromamba/envs/skala/lib/python3.13/site-packages/numpy/__init__.pyi:737: error: Type statement is only supported in Python 3.12 and greater  [syntax]
Found 1 error in 1 file (errors prevented further checking)

Activity

  1. awvwgk commented on Jun 24, 2026

    @awvwgk
    MemberAuthor

    Jan Jan Hermann (@jhrmnn), you run into this issue as well in pyberny/pyberny#167, do you have a pointer to resolve this?

  2. kjh-giesbertz commented on Jun 24, 2026

    @kjh-giesbertz
    Contributor

    The newest version of numpy (2.5) is currently not yet supported by the current highest version of ase (3.29.0), so we cannot support it yet. But I saw on the master that they already are fixing it, since arr.shape = ... assignments are being replaced by arr.reshape, so I expect this to be fixed in the near future. I think for now we have to restrict the numpy version to <2.5 (#84) till ase gets updated.

  3. awvwgk commented on Jun 24, 2026

    @awvwgk
    MemberAuthor

    Can we keep track of the ASE & numpy imcompatibility in another issue to not loose track of it?

  4. jhrmnn commented on Jun 26, 2026

    @jhrmnn
    Member

    Jan @jhrmnn, you run into this issue as well in jhrmnn/pyberny#167, do you have a pointer to resolve this?

    I'm amazed you somehow saw that. I ended up simply relaxing the mypy's python version pin: pyberny/pyberny#165 (ignore the PR description, see the code chagnes)

  5. JensWehner commented on Oct 4, 2026

    @JensWehner
    Contributor

    I think this is certainly not relevant anymore with #137

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions