| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Ported from numpy/numtype#234 --- This fixes the signatures of the following public `numpy` members: - `unique` - `unique_all` - `unique_counts` - `unique_inverse` - `unique_values` - `intersect1d` - `ediff1d`
|
Diff from mypy_primer, showing the effect of this PR on type check results on a corpus of open source code: xarray (https://github.com/pydata/xarray)
+ xarray/core/indexing.py: note: In function "_decompose_vectorized_indexer":
+ xarray/core/indexing.py:1144: error: Argument 1 to "append" of "list" has incompatible type "ndarray[tuple[int, ...], dtype[Any]]"; expected "slice[Any, Any, Any]" [arg-type]
+ xarray/core/indexing.py:1145: error: Argument 1 to "append" of "list" has incompatible type "ndarray[Any, Any]"; expected "slice[Any, Any, Any]" [arg-type]
+ xarray/core/indexing.py: note: At top level:
scipy (https://github.com/scipy/scipy)
+ scipy/spatial/tests/test_spherical_voronoi.py:255: error: Incompatible types in assignment (expression has type "ndarray[tuple[int, ...], dtype[Any]]", variable has type "list[ndarray[tuple[int, ...], dtype[Any]]]") [assignment]
|
Sorry, something went wrong.
|
The new mypy_primer errors (xarray, scipy) are mypy-only errors that are related to reassignment, similar to the mypy-only errors we have seen before with the 2.2 release. |
Sorry, something went wrong.
|
Thanks Joren. |
Sorry, something went wrong.
|
This one might be a bit too risky to backport. Mypy is working on fixing the underlying issue, though: python/mypy#18727 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Ported from numpy/numtype#234
This fixes the signatures of the following public numpy members: