Skip to content

MyPy fails with new numpy dtype type hints #7803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ricardoV94 opened this issue May 27, 2025 · 0 comments
Open

MyPy fails with new numpy dtype type hints #7803

ricardoV94 opened this issue May 27, 2025 · 0 comments

Comments

@ricardoV94
Copy link
Member

ricardoV94 commented May 27, 2025

Description

In #7792 mypy started failing, likely due to picking up new numpy versions.

I marked pymc/sampling/mcmc.py as failing type-hints for the purpose of the CI:

pymc/sampling/mcmc.py:837: error: Argument "random_seed" to "init_nuts" has incompatible type "list[signedinteger[_64Bit]]"; expected "int | Sequence[int] | ndarray[Any, Any] | None | None"

@ricardoV94 ricardoV94 changed the title MyPy doesn't like the new numpy dtype type hints MyPy fails with new numpy dtype type hints May 27, 2025
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

No branches or pull requests

1 participant