Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #22786 from asmeurer/linalg-namedtuplesHEADmain | Charles Harris | 2023-05-17 | 1 | -15/+15 |
|\ | | | | | ENH: Add namedtuple return types to linalg functions that return tuples | ||||
| * | TYP: Update type annotations for the new linalg named tuples | Bas van Beek | 2023-05-17 | 1 | -15/+15 |
| | | |||||
* | | TYP: Relax the `genfromtxt` return dtype when the dtype is unspecified | Bas van Beek | 2023-05-16 | 1 | -5/+5 |
| | | |||||
* | | Merge branch 'main' into deprecate-find-common-type | Charles Harris | 2023-05-13 | 16 | -231/+24 |
|\ \ | |||||
| * | | TYP: Re-export the `np.dtypes` namespace | Bas van Beek | 2023-05-08 | 1 | -0/+1 |
| | | | | | | | | | | | | xref https://github.com/numpy/numpy/pull/23358 | ||||
| * | | TYP: Add the `np.exceptions` namespace and add `DTypePromotionError` | Bas van Beek | 2023-05-08 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | Xref https://github.com/numpy/numpy/pull/22644 and https://github.com/numpy/numpy/pull/22707 Update modules.pyi | ||||
| * | | TYP: Let `np.einsum` accept `object` dtypes | Bas van Beek | 2023-05-08 | 2 | -4/+4 |
| | | | | | | | | | | | | xref https://github.com/numpy/numpy/pull/18053 | ||||
| * | | Merge pull request #22493 from mwtoews/maint-open | Sebastian Berg | 2023-04-28 | 1 | -1/+1 |
| |\ \ | | | | | | | | | MAINT: remove redundant open() modes and io.open() alias | ||||
| | * | | MAINT: remove redundant open() modes and io.open() alias | Mike Taves | 2022-10-29 | 1 | -1/+1 |
| | | | | |||||
| * | | | BUG: Use output when given on numpy.dot C-API branch (#23459) | Pedro Lameiras | 2023-03-28 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated the dot function C-API so that it now calls `np.multiply` with `out=` and returns it on branch of the function where the correct behaviour was not in place. Added two tests regarding this issue. Closes #21081. Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> | ||||
| * | | | MAINT: cleanup unused Python3.8-only code and references | Clément Robert | 2023-03-14 | 2 | -9/+3 |
| | | | | |||||
| * | | | MAINT, DOC: string_ → bytes_ and unicode_ → str_ | Dimitri Papadopoulos | 2023-02-10 | 3 | -5/+5 |
| | | | | |||||
| * | | | MAINT: Remove `npt._GenericAlias` in favor of py39 `types.GenericAlias` | BvB93 | 2023-02-02 | 1 | -188/+0 |
| | | | | |||||
| * | | | MAINT: Remove all nose testing support. | Charles Harris | 2023-01-19 | 1 | -2/+0 |
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NumPy switched to using pytest in 2018 and nose has been unmaintained for many years. We have kept NumPy's nose support to avoid breaking downstream projects who might have been using it and not yet switched to pytest or some other testing framework. With the arrival of Python 3.12, unpatched nose will raise an error. It it time to move on. Decorators removed - raises - slow - setastest - skipif - knownfailif - deprecated - parametrize - _needs_refcount These are not to be confused with pytest versions with similar names, e.g., pytest.mark.slow, pytest.mark.skipif, pytest.mark.parametrize. Functions removed - Tester - import_nose - run_module_suite | ||||
| * | | Merge pull request #22316 from seberg/void-strctured-new | Sebastian Berg | 2022-11-21 | 2 | -2/+5 |
| |\ \ | | | | | | | | | ENH: Allow creating structured void scalars by passing dtype | ||||
| | * | | ENH: Allow creating structured void scalars by passing dtype | Sebastian Berg | 2022-09-21 | 2 | -2/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an optional `dtype=` kwarg to `np.void`. If given (and not None), this kwarg effectively turns it into: res = np.array(data, dtype=dtype)[()] Thanks for Marten's review and Bas' help with the typing. Reviewed-by: Marten van Kerkwijk <mhvk@astro.utoronto.ca> Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com> | ||||
| * | | | TYP: Remove newly deprecated scalar type aliases | Sebastian Berg | 2022-11-17 | 2 | -15/+0 |
| | | | | |||||
| * | | | TYP,DEP: Remove `msort` annotations | BvB93 | 2022-11-14 | 1 | -4/+0 |
| | | | | | | | | | | | | | | | | Xref https://github.com/numpy/numpy/pull/22456 | ||||
| * | | | TYP,ENH: Improve the `dtype`-overload of `stack`, `hstack` and `vstack` | BvB93 | 2022-11-14 | 1 | -0/+3 |
| | |/ | |/| | | | | | | | Xref https://github.com/numpy/numpy/pull/21627 | ||||
* | | | DEP,TYP: Remove `find_common_type` typing stubs and tests | Sebastian Berg | 2022-11-07 | 3 | -9/+0 |
|/ / | |||||
* | | TST: Avoid possible warning from unnecessary cast with uninitialized values | Sebastian Berg | 2022-10-12 | 1 | -1/+1 |
| | | | | | | | | | | This should be fixed in `choose` to not do the unnecessary cast, see gh-22237. | ||||
* | | Merge pull request #22360 from BvB93/mypy | Matti Picus | 2022-10-02 | 3 | -4/+2 |
|\ \ | | | | | | | TST,TYP: Bump mypy to 0.981 | ||||
| * | | TST,TYP: Bump mypy to 0.981 | BvB93 | 2022-09-30 | 3 | -4/+2 |
| |/ | |||||
* | | Merge pull request #22358 from BvB93/index | Matti Picus | 2022-10-02 | 1 | -2/+2 |
|\ \ | | | | | | | ENH,TYP: Add special casing for `ndarray`-based indexing | ||||
| * | | ENH,TYP: Add special casing for `ndarray`-based indexing | BvB93 | 2022-09-30 | 1 | -2/+2 |
| |/ | |||||
* | | TYP,ENH: Mark `numpy.typing` protocols as runtime checkable | BvB93 | 2022-09-30 | 1 | -1/+32 |
|/ | |||||
* | TYP: Import into random module | Kevin Sheppard | 2022-08-11 | 1 | -2/+2 |
| | |||||
* | MAINT: Update typing information | Kevin Sheppard | 2022-08-11 | 2 | -0/+6 |
| | |||||
* | Merge pull request #21984 from BvB93/comparison | Matti Picus | 2022-07-17 | 1 | -0/+9 |
|\ | | | | | MAINT,TYP: Add object-overloads for the `np.generic` rich comparisons | ||||
| * | MAINT,TYP: Add object-overloads for the `np.generic` rich comparisons | Bas van Beek | 2022-07-14 | 1 | -0/+9 |
| | | |||||
* | | Merge pull request #21983 from BvB93/einsum | Matti Picus | 2022-07-14 | 1 | -0/+3 |
|\ \ | |/ |/| | TYP,MAINT: Allow `einsum` subscripts to be passed via integer array-likes | ||||
| * | TYP,MAINT: Allow `einsum` subscripts to be passed via integer array-likes | Bas van Beek | 2022-07-14 | 1 | -0/+3 |
| | | |||||
* | | MAINT: Do not let `_GenericAlias` wrap the underlying classes `__class__` ↵ | Bas van Beek | 2022-07-14 | 1 | -1/+4 |
|/ | | | | | | attribute Adapt to the 3.11b4 changes introduced in https://github.com/python/cpython/pull/93754 | ||||
* | MAINT, TYP: Fix `np.angle` dtype-overloads | Bas van Beek | 2022-07-12 | 1 | -3/+4 |
| | |||||
* | ENH: issue overflow warning when using `abs` on `np.int8(-128)` (#21648) | Meekail Zain | 2022-06-13 | 1 | -2/+4 |
| | | | | | | Checks condition a == NPY_MIN_@NAME@ to determine whether an overflow error has occurred for np.int8 type. See #21289 and #21188 (comment) for reference. This also adds error integer overflow handling to the `-scalar` paths and "activates" a test for the unsigned versions. A few tests are skipped, because the tests were buggy (they never ran). These paths require followups to fix. | ||||
* | TYP: Remove `normed=` from typing stubs | Sebastian Berg | 2022-06-02 | 1 | -1/+0 |
| | |||||
* | Merge pull request #21605 from BvB93/alias | Matti Picus | 2022-05-27 | 1 | -3/+40 |
|\ | | | | | MAINT: Adapt the `npt._GenericAlias` backport to Python 3.11 `types.GenericAlias` changes | ||||
| * | TST: Remove the `__reduce__` tests | Bas van Beek | 2022-05-26 | 1 | -2/+0 |
| | | | | | | | | Deliberate divergence w.r.t. CPython | ||||
| * | TST: Add `npt._GenericAlias` tests for (backported) Python 3.11 features | Bas van Beek | 2022-05-26 | 1 | -3/+42 |
| | | |||||
* | | TYP: Allow unsigned integer inplace-ops to accept signed integers | Bas van Beek | 2022-05-25 | 1 | -0/+4 |
|/ | | | | Inplace ops generally use "same_kind" casting w.r.t. to the left operand. An exception to this rule are unsigned integers though, which also accepts a signed integer (array) for the right operand as long as all its values are >=0. | ||||
* | MAINT: Python <3.8 related cleanups | Brigitta Sipőcz | 2022-05-23 | 2 | -7/+5 |
| | |||||
* | DOC: Add a note about `npt._GenericAlias` >=3.11 stability | Bas van Beek | 2022-05-20 | 1 | -0/+4 |
| | |||||
* | TST,TYP: Fix a python 3.11 failure for the `GenericAlias` tests | Bas van Beek | 2022-05-20 | 1 | -2/+2 |
| | |||||
* | TYP: Add basic `np.number` overloads for ndarray dunders | Bas van Beek | 2022-05-14 | 1 | -1/+4 |
| | |||||
* | TYP: Let `ndarray` fancy indexing always return an `ndarray` | Bas van Beek | 2022-04-15 | 1 | -0/+2 |
| | |||||
* | MAINT: Explicitly re-export the types in `numpy._typing` | Bas van Beek | 2022-03-18 | 1 | -0/+1 |
| | |||||
* | MAINT: Split `numpy.typing` into a public and private component | Bas van Beek | 2022-03-18 | 11 | -41/+44 |
| | | | | i.e. `numpy.typing` and `numpy._typing` | ||||
* | Merge pull request #21180 from BvB93/mypy | Charles Harris | 2022-03-13 | 12 | -62/+62 |
|\ | | | | | TST: Bump mypy from 0.931 to 0.940 | ||||
| * | TST: Adapt to the mypy 0.940 `iter` changes | Bas van Beek | 2022-03-11 | 3 | -6/+6 |
| | | | | | | | | xref https://github.com/python/typeshed/pull/6035 | ||||
| * | TST: Adapt to the mypy 0.940 changes in tuple representation | Bas van Beek | 2022-03-11 | 12 | -58/+58 |
| | |