summaryrefslogtreecommitdiff
path: root/numpy/typing
Commit message (Collapse)AuthorAgeFilesLines
...
* ENH: Add 'ulong' to sctypeDict (#21151)Geoffrey Gunter2022-03-141-1/+1
| | | | | | | | | * ENH: Add 'ulong' to sctypeDict Closes #21063 * TST: Add a test for np.dtype("ulong") * REV: Don't add new attribute np.ulong
* Merge pull request #21180 from BvB93/mypyCharles Harris2022-03-1312-62/+62
|\ | | | | TST: Bump mypy from 0.931 to 0.940
| * TST: Adapt to the mypy 0.940 `iter` changesBas van Beek2022-03-113-6/+6
| | | | | | | | xref https://github.com/python/typeshed/pull/6035
| * TST: Adapt to the mypy 0.940 changes in tuple representationBas van Beek2022-03-1112-58/+58
| |
* | Merge pull request #21111 from BvB93/__array_finalize__Matti Picus2022-02-245-0/+12
|\ \ | |/ |/| TYP, MAINT: Relax the `obj` type in `__array_finalize__`
| * MAINT: Relax the `obj` type in `__array_finalize__`Bas van Beek2022-02-233-0/+6
| |
| * MAINT: Remove a leftover `__array_finalize__` property decoratorBas van Beek2022-02-232-0/+6
| |
* | ENH: Mark non-subclassable types as `final`Bas van Beek2022-02-221-5/+5
|/
* TYP,TST: Add tests for known mypy-related false-positivesBas van Beek2022-02-212-0/+21
| | | | These all concern known false positives due to known mypy bugs. If one of these tests break, than that would generally be indicative of a upstream bug fix
* TYP,MAINT: Explicitly allow sequences of array-likes in `np.concatenate`Bas van Beek2022-02-211-0/+5
|
* TYP: Add dtype-typing support to `fromnumeric` part 3Bas van Beek2022-02-142-72/+90
|
* DOC: See also should not have backticks.Matthias Bussonnier2022-02-121-1/+1
| | | | NumpyDoc fails on this with a parse Error
* TST: Add more typing tests for `np.core.fromnumeric`Bas van Beek2022-02-092-58/+77
|
* TST,MAINT: Improve a number of variable namesBas van Beek2022-02-091-227/+226
|
* Merge pull request #20902 from BvB93/fromnumericCharles Harris2022-01-272-85/+89
|\ | | | | TYP,ENH: Add dtype-typing support to `np.core.fromnumeric` (part 1)
| * TYP,ENH: Add dtype-typing support to `fromnumeric` (part 1)Bas van Beek2022-01-262-85/+89
| |
* | MAINT: Add annotations for `flatiter.__setitem__`Bas van Beek2022-01-271-0/+4
| |
* | MAINT: Allow `flatiter.__getitem__` to accept 1-tuplesBas van Beek2022-01-271-0/+2
|/
* Merge pull request #20887 from BvB93/aliasesCharles Harris2022-01-245-15/+33
|\ | | | | TYP,MAINT: Add aliases for commonly used unions
| * TST: Fix failing typing testsBas van Beek2022-01-242-2/+2
| |
| * MAINT: Create the `_ArrayLike` type-alias in `numpy.typing`Bas van Beek2022-01-241-0/+6
| | | | | | | | Represents a subset of `npt.ArrayLike` that can be parametrized w.r.t. `np.generic`
| * MAINT: Rename the old `_ArrayLike` parameter used inside the `_array_like` ↵Bas van Beek2022-01-241-12/+12
| | | | | | | | module
| * MAINT: Create the `_DTypeLike` type-alias in `numpy.typing`Bas van Beek2022-01-242-1/+13
| | | | | | | | Represents a subset of `npt.DTypeLike` that can be parametrized w.r.t. `np.generic`
* | Merge pull request #20885 from BvB93/param_specCharles Harris2022-01-242-0/+6
|\ \ | |/ |/| TYP,ENH: Improve typing with the help of `ParamSpec`
| * ENH: Improve typing with the help of `ParamSpec`Bas van Beek2022-01-242-0/+6
| |
* | MAINT: Relax the return-type of `np.vectorize`Bas van Beek2022-01-191-1/+1
|/
* ENH: Type the `like` parameter via a `__array_function__` protocolBas van Beek2022-01-112-0/+3
|
* TYP: Add a protocol class representing `__array_function__`Bas van Beek2022-01-112-0/+15
|
* MAINT: removed duplicate 'int' type in ScalarTypeGaëtan de Menten2022-01-102-6/+6
|
* TYP: Allow time manipulation functions to accept `data` and `timedelta` objectsBas van Beek2022-01-061-0/+12
|
* TYP,MAINT: Allow `ndindex` to accept integer tuplesBas van Beek2022-01-022-0/+3
|
* TYP,TST: Bump mypy to 0.930Bas van Beek2021-12-261-1/+1
|
* STY: Use subscriptable `collections.abc` types over the generic aliases in …Bas van Beek2021-12-239-12/+13
|
* STY: Use subscriptable `builtins` types over the generic aliases in `typing`Bas van Beek2021-12-2333-163/+154
|
* STY: Replace `Union` with the `|` operatorBas van Beek2021-12-222-8/+9
|
* STY: Replace `Optional` with the `|` operatorBas van Beek2021-12-221-2/+4
|
* Merge pull request #20611 from BvB93/mypyCharles Harris2021-12-171-5/+5
|\ | | | | TST: Bump mypy: 0.910 -> 0.920
| * TST: Fix mypy 0.920-related test failuresBas van Beek2021-12-161-5/+5
| |
* | ENH: add ndmin to `genfromtxt` behaving the same as `loadtxt` (#20500)Ivan Gonzalez2021-12-161-1/+1
| |
* | MAINT: Add `np.rec.array` overloads for `None` and file-like objectsBas van Beek2021-12-151-0/+21
| |
* | MAINT: Allow the `loadtxt` comments parameter to be `None`Bas van Beek2021-12-151-0/+1
|/
* TST: Strip overload/protocol suggestions from reported mypy errorsBas van Beek2021-11-261-1/+1
|
* TST: Cache the compiled regex pattern in the `test_reveal` typing testsBas van Beek2021-11-261-3/+3
|
* ENH: Add dtype-typing support to `np.core.function_base`Bas van Beek2021-11-262-7/+21
|
* BUG: Remove invalid `__dlpack__` decoratorBas van Beek2021-11-261-0/+3
|
* Merge pull request #20433 from BvB93/122_typingCharles Harris2021-11-221-0/+8
|\ | | | | BUG: Fix an incorrect protocol used in `np.lib.shape_base`
| * BUG: Fix an incorrect protocol used in `np.lib.shape_base`Bas van Beek2021-11-221-0/+8
| |
* | TST: Add typing tests for `np.emath`Bas van Beek2021-11-221-0/+52
|/
* MAINT: Rename interpolation to method in percentile stubsSebastian Berg2021-11-121-2/+2
|
* MAINT: Do not forward `__(deep)copy__` calls of `_GenericAlias` to the ↵Bas van Beek2021-11-102-0/+18
| | | | | | wrapped type Adapt to the python 3.9.8 changes made in bpo-45167.