Skip to content

MyPy fails with new numpy dtype type hints #7803

Open
@ricardoV94

Description

@ricardoV94

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions