summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.pyi
Commit message (Collapse)AuthorAgeFilesLines
* TYP,BUG: Add annotations for missing `max`, `min` and `round` aliasesBas van Beek2023-05-081-0/+4
|
* MAINT: Split `numpy.typing` into a public and private componentBas van Beek2022-03-181-1/+1
| | | | i.e. `numpy.typing` and `numpy._typing`
* MAINT: Allow `fromnumeric` functions to accept `__index__`-supporting ↵Bas van Beek2022-02-171-57/+57
| | | | objects instead of just `int`
* TYP: Add dtype-typing support to `fromnumeric` part 3Bas van Beek2022-02-141-16/+346
|
* TYP: Add dtype-typing support to `fromnumeric` (part 2)Bas van Beek2022-02-091-24/+273
|
* Merge pull request #20918 from janusheide/add-missing-where-typehintsBas van Beek2022-01-281-0/+14
|\ | | | | TYP: Added missing where typehints in fromnumeric.pyi
| * consistency between keyword only where argumentsJanus Heide2022-01-281-0/+6
| |
| * Update numpy/core/fromnumeric.pyiJanus2022-01-281-0/+1
| | | | | | Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
| * added missing where typehints in fromnumeric.pyiJanus Heide2022-01-271-0/+7
| |
* | MAINT: Remove a number of outdated/unused comments and variablesBas van Beek2022-01-261-17/+4
| |
* | TYP,ENH: Add dtype-typing support to `fromnumeric` (part 1)Bas van Beek2022-01-261-26/+130
|/
* STY: Use subscriptable `collections.abc` types over the generic aliases in …Bas van Beek2021-12-231-1/+2
|
* STY: Use subscriptable `builtins` types over the generic aliases in `typing`Bas van Beek2021-12-231-2/+2
|
* STY: Replace `Union` with the `|` operatorBas van Beek2021-12-221-5/+6
|
* STY: Replace `Optional` with the `|` operatorBas van Beek2021-12-221-52/+52
|
* MAINT: Drop .pyi code-paths specific to Python 3.7Bas van Beek2021-08-301-7/+1
|
* ENH: Adding keepdims to np.argmin,np.argmax (#19211)Gagandeep Singh2021-07-071-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * keepdims added to np.argmin,np.argmax * Added release notes entry * tested for axis=None,keepdims=True * Apply suggestions from code review * updated interface * updated interface * API changed, implementation to be done * Added reshape approach to C implementation * buggy implementation without reshape * TestArgMax, TestArgMin fixed, comments added * Fixed for matrix * removed unrequired changes * fixed CI failure * fixed linting issue * PyArray_ArgMaxKeepdims now only modifies shape and strides * Comments added to PyArray_ArgMaxKeepdims * Updated implementation of PyArray_ArgMinKeepdims to match with PyArray_ArgMaxKeepdims * Testing complete for PyArray_ArgMinKeepdims and PyArray_ArgMaxKeepdims * PyArray_ArgMinWithKeepdims both keepdims=True and keepdims=False * matched implementation of PyArray_ArgMaxKeepdims and PyArray_ArgMinKeepdims * simplified implementation * Added missing comment * removed unwanted header * addressed all the reviews * Removing unwanted changes * fixed docs * Added new lines * restored annotations * parametrized test * Apply suggestions from code review Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> * keyword handling now done in np.argmin/np.argmax * corrected indendation * used with pytest.riases(ValueError) * fixed release notes * removed PyArray_ArgMaxWithKeepdims and PyArray_ArgMinWithKeepdims from public C-API * Apply suggestions from code review Co-authored-by: Eric Wieser <wieser.eric@gmail.com> * Apply suggestions from code review Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* MAINT: Remove two duplicate (redundant) type aliasesBas van Beek2021-05-121-14/+14
|
* MAINT: Remove unsafe unions from `np.core.fromnumeric`Bas van Beek2021-04-301-232/+110
|
* MAINT: Simplify a unionBas van Beek2021-01-181-2/+1
| | | | `_BoolLike_co` is already a subtype of `_IntLike_co`, no nead the use an explicit union here
* MAINT: Renamed `<X>Like` to `<X>Like_co`Bas van Beek2021-01-181-16/+16
|
* ENH: Use `intp` as return type for all appropiate functionsBas van Beek2020-12-221-6/+7
| | | | Since `intp` is now annotated it can be used in place of `signedinteger[Any]`
* MAINT: Rename `DtypeLike` to `DTypeLike`Bas van Beek2020-11-031-15/+15
|
* MAINT: Move aliases for common scalar unions to `numpy.typing` (#17429)Bas van Beek2020-10-071-4/+9
| | | * MAINT: Move the `<scalar>Like` unions to `numpy.typing`
* MAINT: Moved a few constants back to `__init__.pyi`; cleaned up their namesBas van Beek2020-09-221-30/+16
|
* MAINT: Move the `fromnumeric` annotations to their own stub fileBas van Beek2020-09-141-0/+492