summaryrefslogtreecommitdiff
path: root/numpy/__init__.pyi
Commit message (Collapse)AuthorAgeFilesLines
* ENH: Expose `index_tricks` content to `np` and `np.lib` namespaceBas van Beek2021-02-251-12/+15
|
* ENH: Add annotations for `np.lib.index_tricks`Bas van Beek2021-02-251-2/+28
|
* Apply suggestions from code review Matt-Ord2021-02-231-4/+4
| | | | | Fixed annotations of eye() Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
* added type annotations to eyeMatt2021-02-231-1/+9
|
* ENH: Add annotations for `np.core.einsumfunc`Bas van Beek2021-02-101-2/+5
|
* BUG: improve the interface of `tofile` method; import osszsdk2021-02-101-0/+1
|
* BUG: improve the interface of `tofile` methodszsdk2021-02-101-1/+1
|
* ENH: Expose `ufunclike` annotations to the `np` and `np.lib` namespaceBas van Beek2021-02-091-3/+6
|
* Merge pull request #18322 from BvB93/plugin-precisionCharles Harris2021-02-081-4/+17
|\ | | | | ENH: Add a mypy plugin for exposing platform-specific extended-precision types
| * ENH: Add a plugin for exposing platform-specific extended-precision `np.number`sBas van Beek2021-02-051-0/+3
| |
| * ENH: Add support for all potential extended-precision `np.number`sBas van Beek2021-02-051-4/+14
| |
* | ENH: Add annotations for 16 ufunc-based `ndarray` magic methodsBas van Beek2021-02-051-16/+328
|/
* Merge pull request #18284 from BvB93/aliasesCharles Harris2021-02-011-7/+11
|\ | | | | ENH: Add annotations for the remaining `np.generic` aliases
| * ENH: Add annotations for the remaining `np.generic` aliasesBas van Beek2021-02-011-7/+11
| |
* | Merge pull request #18285 from BvB93/typing-extensionsCharles Harris2021-02-011-3/+1
|\ \ | | | | | | TST: Pin `typing_extensions` to the latest version
| * | MAINT: Import `SupportsIndex` from typing-extensionsBas van Beek2021-02-011-3/+1
| |/ | | | | | | These days `SupportsIndex` is available in typing-extensions (and recognized by mypy)
* | Merge pull request #18228 from BvB93/comparison3Charles Harris2021-02-011-26/+357
|\ \ | |/ |/| ENH: Add dtype-support to the ufunc-based `ndarray` magic methods 2/4
| * MAINT: Added a missing overload for `ndarray[Any],ArrayLike[object_]->Any`Bas van Beek2021-01-251-0/+8
| | | | | | | | The previous PR added support for `ndarray[object_],Any->Any` but its inverse was still missing
| * ENH: Add dtype-support to 15 ufunc-based `ndarray` magic methodsBas van Beek2021-01-251-18/+334
| |
| * MAINT: Add (covariant) aliases for certain `ndarray`sBas van Beek2021-01-251-8/+15
| |
* | Merge pull request #18236 from BvB93/dtype-likeRalf Gommers2021-01-291-3/+2
|\ \ | | | | | | ENH: Add aliases for commonly used dtype-like objects
| * | MAINT: Ensure that the `_SupportsDType` protocol can only take dtypes; not ↵Bas van Beek2021-01-261-3/+2
| |/ | | | | | | | | | | arbitrary dtype-like objects xref https://github.com/numpy/numpy/pull/13578
* | MAINT: Removed annotations for `__NUMPY_SETUP__`, `__deprecated_attrs__` and ↵Bas van Beek2021-01-271-3/+0
| | | | | | | | | | | | `__expired_functions__` Removing them as their "public" nature is somewhat questionable.
* | ENH: Add annotations for certain module-level dundersBas van Beek2021-01-251-0/+7
| |
* | STY: Remove `__all__` in favor of explicit reexportsBas van Beek2021-01-251-100/+54
|/
* ENH: Add dtype support to the array comparison ops (#18128)Bas van Beek2021-01-211-30/+107
| | | | | | | | | | | | | | | | | | | | | * ENH: Added `_ArrayLikeNumber` * ENH: Added dtype support to the array comparison ops * MAINT: Made `dtype` and `ndarray` covariant The dtypes scalar-type and ndarrays' dtype are now covariant instead of invariant. This change is necasary in order to ensure that all generic subclasses can be used as underlying scalar type. * TST: Updated the comparison typing tests * MAINT: Fixed an issue where certain `array > arraylike` operations where neglected More specifically operations between array-likes of `timedelta64` and `ndarray`s that can be cast into `timedelta64`. For example: ar_i = np.array([1]) seq_m = [np.timedelta64()] ar_i > seq_m
* MAINT: Changed the `NBitBase` variancy in `number` from co- to invariantBas van Beek2021-01-191-91/+91
|
* MAINT: Simplify a unionBas van Beek2021-01-181-8/+8
| | | | `_BoolLike_co` is already a subtype of `_IntLike_co`, no nead the use an explicit union here
* STY: Cleaned up the `numpy.typing` importsBas van Beek2021-01-181-4/+13
|
* MAINT: Renamed `<X>Like` to `<X>Like_co`Bas van Beek2021-01-181-68/+68
|
* ENH: Use `intp` as return type for all appropiate functionsBas van Beek2020-12-221-4/+4
| | | | Since `intp` is now annotated it can be used in place of `signedinteger[Any]`
* ENH: Centralize all `DTypeLike` string aliases in `numpy.typing`Bas van Beek2020-12-221-246/+126
|
* ENH: Added a mypy plugin for handling platform-specific `np.number` precisionsBas van Beek2020-12-221-36/+49
|
* ENH: Added annotations for `np.core.arrayprint`Bas van Beek2020-12-191-9/+12
|
* Merge pull request #17981 from BvB93/flatiterCharles Harris2020-12-111-10/+23
|\ | | | | ENH: Add proper dtype-support to `np.flatiter`
| * ENH: Add dtype-support for `np.flatiter`Bas van Beek2020-12-111-7/+10
| |
| * ENH: Add dtype-support for the `__array__` protocolBas van Beek2020-12-111-3/+13
| |
* | Merge pull request #17968 from BvB93/dtype-typevarCharles Harris2020-12-111-5/+5
|\ \ | |/ |/| ENH: Use more typevars in `np.dtype`
| * MAINT: Use `dtype[Any]` instead of `dtype`Bas van Beek2020-12-091-1/+1
| |
| * ENH: Replace `dtype` with the `_DType` typevarBas van Beek2020-12-091-4/+4
| |
* | Merge pull request #17795 from BvB93/x-likeMatti Picus2020-12-091-25/+24
|\ \ | |/ |/| ENH: Add two new `_<X>Like` unions
| * MAINT: Simplify existing `_<X>Like` annotationsBas van Beek2020-11-171-25/+24
| |
* | Merge pull request #17719 from BvB93/ndarrayCharles Harris2020-12-051-7/+13
|\ \ | | | | | | ENH: Make `ndarray` generic w.r.t. its shape and dtype
| * | ENH: Make `ndarray` generic w.r.t. its shape and dtypeBas van Beek2020-11-261-7/+13
| | |
* | | ENH: Added annotations for `ndarray`/`generic` comparison opsBas van Beek2020-11-241-4/+21
|/ /
* | MAINT: Set the ufunc and ndarray ops return type to `Any`Bas van Beek2020-11-191-37/+33
|/
* MAINT: Move a number of methods to `ndarray` / `generic`Bas van Beek2020-11-141-45/+61
|
* Merge pull request #17643 from BvB93/ufunc_configCharles Harris2020-11-141-7/+40
|\ | | | | ENH: Add annotations for `np.core._ufunc_config`
| * ENH: Add annotations for `np.core._ufunc_config`Bas van Beek2020-10-261-7/+40
| |
* | MAINT: Rename `DtypeLike` to `DTypeLike`Bas van Beek2020-11-031-49/+49
| |