summaryrefslogtreecommitdiff
path: root/numpy/typing
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge pull request #19286 from BvB93/type_checkCharles Harris2021-06-232-0/+86
|\ \ \ | |_|/ |/| | ENH: Add annotations for `np.lib.type_check`
| * | TST: Add typing tests for `np.lib.type_check`Bas van Beek2021-06-202-0/+86
| | |
* | | TST: Update the dtype typing testsBas van Beek2021-06-181-21/+30
|/ /
* | Merge pull request #19261 from BvB93/2dimCharles Harris2021-06-162-0/+109
|\ \ | | | | | | ENH: Add annotations for `np.lib.twodim_base`
| * | TST: Add typing tests for `np.lib.twodim_base`Bas van Beek2021-06-162-0/+109
| | |
* | | TST: Update the typing tests for `np.core.shape_base`Bas van Beek2021-06-142-18/+20
|/ /
* | TST: Fixed two test failures for mypy 0.902Bas van Beek2021-06-142-3/+3
| |
* | TST: Update the typing tests for `np.core.multiarray`Bas van Beek2021-06-134-2/+102
| |
* | Merge pull request #19227 from BvB93/multiarray3Charles Harris2021-06-123-33/+48
|\ \ | | | | | | ENH: Add annotations to `np.core.multiarray` part 2/4
| * | TST: Update the typing tests for `np.core.multiarray`Bas van Beek2021-06-113-33/+48
| | |
* | | TST: Add typing tests for `np.lib.arraypad`Bas van Beek2021-06-112-0/+28
|/ /
* | Merge pull request #19060 from BvB93/multiarray-docsCharles Harris2021-06-106-67/+201
|\ \ | | | | | | ENH: Add initial annotations to `np.core.multiarray`
| * | TST: Add typing tests for `np.core.multiarray`Bas van Beek2021-06-065-54/+188
| | |
| * | STY: Rename `_Casting` to `_CastingKind`Bas van Beek2021-06-061-13/+13
| | |
* | | Merge pull request #19179 from BvB93/testingCharles Harris2021-06-103-3/+199
|\ \ \ | |/ / |/| | ENH: Add annotations for `np.testing`
| * | TST: Add typing tests for `np.testing`Bas van Beek2021-06-063-3/+199
| | |
* | | Merge pull request #19140 from BvB93/astypeCharles Harris2021-06-062-28/+37
|\ \ \ | |/ / |/| | ENH: Add dtype-support to 3 `generic`/`ndarray` methods
| * | TST: Update the `ndarray`/`generic` typing testsBas van Beek2021-05-312-28/+37
| |/
* | MAINT: Added a missing `sys.version` checkBas van Beek2021-06-054-7/+4
| |
* | REV,BUG: Replace `NotImplemented` with `typing.Any`Bas van Beek2021-06-058-97/+97
| |
* | MAINT: Provide more type-safety by replacing `Any` with `object`Bas van Beek2021-06-041-4/+11
| |
* | BUG: Fixe an issue wherein `_GenericAlias` could raise for non-tuple parametersBas van Beek2021-06-042-1/+7
|/
* Merge pull request #19062 from BvB93/ctypes-pluginCharles Harris2021-05-285-22/+67
|\ | | | | ENH: Add a mypy plugin for inferring the precision of `np.ctypeslib.c_intp`
| * MAINT: Refactor the `c_intp`-type inferring functionBas van Beek2021-05-251-3/+9
| | | | | | | | | | | | Model it after `np.core._internal._getintp_ctype` Co-Authored-By: Eric Wieser <425260+eric-wieser@users.noreply.github.com>
| * TST: Add typing tests for `np.ctypeslib.c_intp` and its mypy pluginBas van Beek2021-05-213-3/+13
| |
| * ENH: Add a mypy plugin for inferring the precision of `np.ctypeslib.c_intp`Bas van Beek2021-05-212-19/+48
| |
* | STY: Use the PEP 604 pipe operator over `Optional` and `Union`Bas van Beek2021-05-274-86/+84
| | | | | | | | PEP 604 -- Allow writing union types as X | Y
* | STY: Use `GenericAlias` to get rid of string-based literal expressionsBas van Beek2021-05-273-28/+37
| |
* | STY: Replace all `Any`-based runtime placeholders with `NotImplemented`Bas van Beek2021-05-273-73/+73
| |
* | MAINT: Unconditionally import from `typing_extensions` while static type ↵Bas van Beek2021-05-271-5/+1
| | | | | | | | | | | | checking `typing_extensions` is a de facto hard dependency of all static type checkers (via its use in typeshed), so we can safely import all >3.7-exclusive types from there without version checking
* | ENH: Add a global constant to `numpy.typing` denoting whether or not ↵Bas van Beek2021-05-276-43/+39
| | | | | | | | `typing_extensions` is available
* | Merge pull request #19090 from default-303/LGTM_alertsCharles Harris2021-05-252-4/+1
|\ \ | | | | | | MAINT: removed unused imports listed in LGTM
| * | MAINT: removed unused imports listed in LGTMdefault-3032021-05-242-4/+1
| |/
* | MAINT: Change the variance of the `npt.ArrayLike` to covariantBas van Beek2021-05-253-4/+4
| |
* | BUG: Fixed an issue wherein `_GenericAlias.__getitem__` would raise for ↵Bas van Beek2021-05-252-1/+5
|/ | | | underlying types with >1 parameters
* Merge pull request #19029 from BvB93/internalCharles Harris2021-05-202-0/+19
|\ | | | | ENH: Improve the annotations of `np.core._internal`
| * DEP: Remove annotations for 4 deprecated methodsBas van Beek2021-05-182-5/+7
| |
| * TST: Add typing tests for `np.core._internal._ctypes`Bas van Beek2021-05-181-0/+17
| |
* | TST: Update the `ufunc` typing testsBas van Beek2021-05-203-3/+106
| |
* | ENH: Improve the `np.ufunc` annotationsBas van Beek2021-05-202-3/+423
| |
* | MAINT: Added a missing object to `npt.__all__`Bas van Beek2021-05-201-1/+1
| |
* | BLD: Add `.pyi` data files to the `numpy.typing` sub-packageBas van Beek2021-05-201-0/+1
|/
* Merge pull request #18935 from BvB93/generic-aliasCharles Harris2021-05-176-10/+375
|\ | | | | API: Add `npt.NDArray`, a runtime-subscriptable alias for `np.ndarray`
| * TST: Fix a python >= 3.9 testBas van Beek2021-05-121-2/+4
| |
| * MAINT: Removed an unused variableBas van Beek2021-05-121-1/+0
| |
| * STY: Stay under the 79 characters limitBas van Beek2021-05-121-39/+36
| |
| * MAINT: Replace `_ArrayND` with `NDArray`Bas van Beek2021-05-123-8/+3
| |
| * ENH: Add docstrings and annotations to 2 misc private functionsBas van Beek2021-05-121-2/+18
| |
| * API: Add a runtime-subscriptable alias for `ndarray`Bas van Beek2021-05-123-1/+47
| |
| * TST: Add tests for `GenericAlias`Bas van Beek2021-05-121-0/+113
| |