summaryrefslogtreecommitdiff
path: root/numpy/typing
Commit message (Collapse)AuthorAgeFilesLines
...
| * ENH: Added a (python-based) backport of `types.GenericAlias`Bas van Beek2021-05-122-0/+197
| |
* | Merge pull request #19002 from BvB93/datasourceCharles Harris2021-05-174-0/+108
|\ \ | | | | | | ENH: Add annotations for `np.broadcast` and `np.DataSource`
| * | TST: Add typing tests for `np.broadcast` and `np.DataSource`Bas van Beek2021-05-134-0/+108
| | |
* | | TST: Add typing tests for the newly (re-)annotated `ndarray`/`generic` methodsBas van Beek2021-05-135-51/+168
|/ /
* | TST: Add typing tests for the `item`, `take`, `tolist` and `repeat` methodsBas van Beek2021-05-125-85/+127
|/
* TST: Fixed an incorrect error messageBas van Beek2021-05-111-1/+1
|
* TST: Add typing tests for `np.lib.NumpyVersion`Bas van Beek2021-05-113-0/+42
|
* TST: Add typing tests for `np.lib.utils`Bas van Beek2021-05-083-0/+69
|
* DOC: Add a segment to the `numpy.typing` docs about 0D arraysBas van Beek2021-04-301-0/+14
|
* MAINT: Remove the `np.typing._ArrayOrScalar` type-aliasBas van Beek2021-04-302-3/+0
|
* MAINT: Remove unsafe unions from `np.core.einsumfunc`Bas van Beek2021-04-301-8/+8
|
* MAINT: Remove unsafe unions from `np`Bas van Beek2021-04-304-243/+243
|
* MAINT: Remove unsafe unions from `np.typing._callable`Bas van Beek2021-04-301-5/+5
|
* MAINT: Remove unsafe unions from `np.lib.ufunclike`Bas van Beek2021-04-301-12/+12
|
* MAINT: Remove unsafe unions from `np.lib.index_tricks`Bas van Beek2021-04-302-10/+11
|
* MAINT: Remove unsafe unions from `np.core.numeric`Bas van Beek2021-04-301-5/+5
|
* MAINT: Remove unsafe unions from `np.core.function_base`Bas van Beek2021-04-301-1/+1
|
* MAINT: Remove unsafe unions from `np.core.fromnumeric`Bas van Beek2021-04-302-190/+176
|
* MAINT: import `emath` from `np.lib`Bas van Beek2021-04-261-1/+0
| | | | aka `np.lib.scimath`
* TST: Update the `np.core.numerictypes` typing testsBas van Beek2021-04-202-0/+36
|
* TST: Fix a test failure for python 3.7Bas van Beek2021-04-151-2/+4
|
* STY: pep8 fixesBas van Beek2021-04-151-4/+9
|
* MAINT: Relax the integer-type-constraint of `npt._ShapeLike`Bas van Beek2021-04-142-1/+13
| | | | Change `int` into the more forgiving `SupportsIndex` protocol
* API,DEP: Move ufunc signature parsing to the startSebastian Berg2021-04-081-1/+1
| | | | | | | | | | | | | | This may have slight affects on users, see release notes. Mainly, we have to parse the type tuple up-front (because we need to replace the current type resolution). Since we _must_ de-facto replace the current type resolution, I do not see why we should duplicate code for the odd possibility of someone actually calling `ufunc.type_resolver()` with a `typetup` that is not a actually a type tuple. This commit also deprecates `signature="l"` as meaning (normally) the same as `dtype="l"`.
* Add test case for np.datetime64(dt.date(2000, 5, 3))Alexander Hunt2021-03-281-0/+1
|
* API: Move `polynomial.polyutils` to the `PRIVATE_BUT_PRESENT_MODULES` listBas van Beek2021-03-162-2/+0
| | | | Aforementioned module was accidently marked as public
* MAINT: Re-export a number of sub-modulesBas van Beek2021-03-153-0/+31
| | | | | | | Ensures that type checkers will allow the likes of: >>> import numpy as np >>> out = np.lib.stride_tricks.sliding_window_view(...)
* Merge pull request #18598 from BvB93/getitemRalf Gommers2021-03-132-0/+30
|\ | | | | MAINT: Add annotations for `dtype.__getitem__`, `__mul__` and `names`
| * MAINT: Add annotations for `dtype.__getitem__`, `__mul__` and `names`Bas van Beek2021-03-112-0/+30
| |
* | MAINT: Tighten the type-constraints of the `__array__` dtype parameterBas van Beek2021-03-125-12/+10
| | | | | | | | The likes of `np.array(..., dtype=dtype)` will always pass `np.dtype` instances to `__array__(self, dtype=...)`, so that latter should not have to take arbitrary dtype-like objects but only actual `np.dtype` instances.
* | MAINT: Relax the signature of the `__array__` protocolBas van Beek2021-03-121-2/+3
| | | | | | | | Implementations of `__array__` do not require the `dtype` parameter
* | TST: Add typing tests for `np.lib.arrayterator`Bas van Beek2021-03-123-0/+65
|/
* TST: Add typing tests for the inplace `ndarray` magic methodsBas van Beek2021-03-042-6/+116
|
* TST: Improve a number of mypy-related exception messagesBas van Beek2021-03-041-7/+21
|
* TST: Validate the mypy exit-codeBas van Beek2021-03-041-1/+2
| | | | Any value other than 0 and 1 is indicative of some sort of crash
* Merge pull request #18397 from BvB93/index-tricksCharles Harris2021-02-275-1/+147
|\ | | | | ENH: Add annotations for `np.lib.index_tricks`
| * MAINT: Relax the type-constraints of `IndexExpression.__getitem__`Bas van Beek2021-02-253-4/+4
| |
| * TST: Add typing tests for `np.lib.index_tricks`Bas van Beek2021-02-253-0/+141
| |
| * MAINT: Added the `_ArrayLikeInt` type aliasBas van Beek2021-02-252-1/+6
| | | | | | | | | | An invariant-ish array-like consisting of int-like objects. Note that it is not truly invariant due to `builtins.bool` inheriting from `builtins.int`
* | TST: Remove the `einsum` typing tests reliance on issuing a `ComplexWarning`Bas van Beek2021-02-261-3/+2
|/
* TST: Add final testsKevin Sheppard2021-02-241-311/+347
|
* Use {int_} for int return typesKevin Sheppard2021-02-241-65/+65
|
* BUG: Fix typing bugsKevin Sheppard2021-02-242-77/+75
|
* ENH: Add tests for RandomStateKevin Sheppard2021-02-242-0/+1165
|
* TST: Add tests for dtype and outKevin Sheppard2021-02-242-1/+83
| | | | Add further tests for functions that accept out and dtype arguments
* ENH/BUG: Improve definitions and fix bugsKevin Sheppard2021-02-242-9/+765
| | | | | | Add tests Fix related bugs Improve specificity of definitions
* ENH/BUG: Add tests and correct typing issuesKevin Sheppard2021-02-244-9/+1016
| | | | | | | Add tests for lower level components Correct errors found in testing Improve specificity of tests Other small fixes to docs and typing
* TST: Add tests for random typingKevin Sheppard2021-02-243-0/+56
|
* Merge pull request #18390 from BvB93/einsumCharles Harris2021-02-126-1/+94
|\ | | | | ENH: Add annotations for `np.core.einsumfunc`
| * TST: Fixed a broken `reveal` testBas van Beek2021-02-111-54/+18
| |