stubtest ignores strict_bytes = true
in pyproject.toml
1.15.0
#18744
Labels
Content-Length: 236184 | pFad | http://github.com/python/mypy/issues/18744
8Astrict_bytes = true
in pyproject.toml
1.15.0
#18744
Fetched URL: http://github.com/python/mypy/issues/18744
Alternative Proxies:
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: