Skip to content

Numpy.typing mypy plugin error  #19215

@Sednaoui

Description

@Sednaoui

I am having trouble adding numpy_typing to my project to use with mypy. Numpy docs explains that a mypy plugin is distributed with numpy.typing plugin.

Reproducing code example:

mypy.ini

[mypy]
plugins = numpy.typing.mypy_plugin

Error message:

Running mypy, I get this errror:

Error importing plugin 'numpy.typing.mypy_plugin': No module named 'numpy.typing

NumPy/Python version information:

1.19.4 3.8.5 (default, May 27 2021, 13:30:53) 
[GCC 9.3.0]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions