You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This causes mypy build errors to be reported when I run stubtest --mypy-config-file=pyproject.toml numpy (in numpy/numtype), where the pyproject.toml contains:
This causes mypy build errors to be reported when I run
stubtest --mypy-config-file=pyproject.toml numpy
(in numpy/numtype), where thepyproject.toml
contains:The build error is of the
overload-cannot-match
kind, and is caused by amemoryview
promotion in https://github.com/numpy/numtype/blob/2a9953a1be3c14660f29aabbaffc3e7fb6c2135a/src/numpy-stubs/__init__.pyi#L1143.The workaround is to use the superseded (and undocumented) flags instead:
Running the command again with this
pyproject.toml
shows no build errors.The text was updated successfully, but these errors were encountered: