Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | MAINT: Replace the old `_NestedSequence` union and remove `_RecursiveSequence` | Bas van Beek | 2021-09-19 | 4 | -17/+26 | |
| | | ||||||
* | | ENH: Add a protocol for representing nested sequences | Bas van Beek | 2021-09-19 | 2 | -0/+94 | |
| | | ||||||
* | | MAINT: Let `eig` and `eigvals` return a union for real inputs | Bas van Beek | 2021-09-18 | 1 | -4/+4 | |
| | | | | | | | | | | | | Whether an array of a `floating` or `complexfloating` dtype is returned depends on the values within in the supplied matrix. Co-Authored-By: Kevin Sheppard <bashtage@users.noreply.github.com> | |||||
* | | TST: Add typing tests for `np.linalg` | Bas van Beek | 2021-09-17 | 2 | -0/+145 | |
| | | ||||||
* | | DOC: Fix the module names of `numpy.typing` objects | Bas van Beek | 2021-09-16 | 1 | -0/+2 | |
|/ | ||||||
* | MAINT: Mark type-check-only ufunc subclasses as ufunc aliases during runtime | Bas van Beek | 2021-09-09 | 1 | -7/+10 | |
| | ||||||
* | Merge pull request #19803 from BvB93/is_integer | Charles Harris | 2021-09-02 | 2 | -1/+2 | |
|\ | | | | | ENH: Add `is_integer` to `np.floating` & `np.integer` | |||||
| * | ENH: Add `integer.is_integer` | Bas van Beek | 2021-08-31 | 1 | -0/+2 | |
| | | | | | | | | Match `int.is_integer`, which was added in python/cpython#6121 | |||||
| * | TST: Add tests for `np.floating.is_integer` | Bas van Beek | 2021-08-31 | 1 | -1/+0 | |
| | | ||||||
* | | TST: Update the IO-related typing tests | Bas van Beek | 2021-09-02 | 2 | -3/+22 | |
| | | ||||||
* | | STY: Use the PEP 457 positional-only syntax in `numpy.typing` | Bas van Beek | 2021-08-31 | 2 | -100/+102 | |
|/ | ||||||
* | BLD: Drop typing extension as an (optional) runtime dependency | Bas van Beek | 2021-08-30 | 2 | -42/+0 | |
| | | | | It might return in the future, but as of the moment we don't need it anymore | |||||
* | MAINT: Drop .pyi code-paths specific to Python 3.7 | Bas van Beek | 2021-08-30 | 2 | -4/+3 | |
| | ||||||
* | MAINT: Drop .py code-paths specific to Python 3.7 | Bas van Beek | 2021-08-30 | 7 | -570/+417 | |
| | ||||||
* | Merge pull request #19680 from BvB93/fromregex | Charles Harris | 2021-08-16 | 2 | -1/+1 | |
|\ | | | | | ENH: Allow `np.fromregex` to accept `os.PathLike` implementations | |||||
| * | ENH: Allow `np.fromregex` to accept `os.PathLike` implementations | Bas van Beek | 2021-08-16 | 2 | -1/+1 | |
| | | ||||||
* | | TST: Add typing tests for `np.lib.stride_tricks` | Bas van Beek | 2021-08-16 | 2 | -0/+37 | |
|/ | ||||||
* | TST: Add typing tests for `np.lib.npyio` | Bas van Beek | 2021-08-13 | 3 | -1/+102 | |
| | ||||||
* | Merge pull request #19540 from BvB93/getlimits | Charles Harris | 2021-07-27 | 1 | -0/+4 | |
|\ | | | | | MAINT: Update the `np.finfo` annotations | |||||
| * | MAINT: Update the `np.finfo` annotations | Bas van Beek | 2021-07-22 | 1 | -0/+4 | |
| | | | | | | | | Reflect the `finfo` changes, made in https://github.com/numpy/numpy/pull/18536, in the classes' type annotations. | |||||
* | | Merge pull request #19554 from MatthieuDartiailh/nditer-typing | Matti Picus | 2021-07-27 | 1 | -0/+19 | |
|\ \ | | | | | | | MAINT: add missing dunder method to nditer type hints | |||||
| * | | first pass at adding nditer typing tests | Matthieu Dartiailh | 2021-07-27 | 1 | -0/+19 | |
| | | | ||||||
* | | | Merge pull request #19559 from BvB93/pytest | Matti Picus | 2021-07-26 | 2 | -0/+3 | |
|\ \ \ | |/ / |/| | | ENH: Add annotations for `__path__` and `PytestTester` | |||||
| * | | ENH: Add `__path__` annotations to all sub-packages | Bas van Beek | 2021-07-25 | 1 | -0/+1 | |
| | | | ||||||
| * | | ENH: Add annotations for `<module>.test` objects | Bas van Beek | 2021-07-25 | 1 | -0/+2 | |
| | | | ||||||
* | | | TST: Update the `np.core.numerictypes` typing tests | Bas van Beek | 2021-07-22 | 2 | -12/+18 | |
| |/ |/| | ||||||
* | | Merge pull request #19525 from BvB93/optional | Sebastian Berg | 2021-07-21 | 1 | -0/+35 | |
|\ \ | | | | | | | TST: Test that `numpy.typing` can be imported in the absence of typing-extensions | |||||
| * | | TST: Remodel the typing-extensions test after `test_full_reimport` | Bas van Beek | 2021-07-21 | 1 | -38/+17 | |
| | | | | | | | | | | | | Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net> | |||||
| * | | TST: Test that `numpy.typing` can be imported in the the absence of ↵ | Bas van Beek | 2021-07-19 | 1 | -0/+56 | |
| | | | | | | | | | | | | typing-extensions | |||||
* | | | ENH: Add the `axis` and `ndim` attributes to `np.AxisError` (#19459) | Bas van Beek | 2021-07-20 | 3 | -8/+6 | |
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR adds the new axis and ndim attributes to the np.AxisError class, an addition inspired by similar changes introduced to AttributeError in Python 3.10. It also provided an excuse to update the classes' documentation and tests, both of which were previously rather lacking. * ENH: Add the `axis` and `ndim` attributes to `np.AxisError` * MAINT: Let the new `AxisError` attributes survive pickling * DOC: Update the `AxisError` documentation * TST: Update the `AxisError` tests * DOC: Add a release note * MAINT: Improve the description of `AxisError`s overloaded constructor * TST: Fix a few typing test failures * DOC: Clarify a fix a few parts of the `AxisError` docstrings Co-Authored-By: Eric Wieser <425260+eric-wieser@users.noreply.github.com> * DOC: Reguide fix * DOC: Replace `versionadded` with `versionchanged` Co-authored-by: Eric Wieser <wieser.eric@gmail.com> * DOC: Mention that `AxisError` is a `ValueError` and `IndexError` subclass Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net> * ENH: Delay assembling of the error message until `__str__` is called Co-Authored-By: Eric Wieser <425260+eric-wieser@users.noreply.github.com> * DOC: Update the `AxisError` string representation in its docstring * DOC: Update `versionadded`-related information Co-Authored-By: Eric Wieser <425260+eric-wieser@users.noreply.github.com> * DOC: Fix sphinx warnings Co-authored-by: Eric Wieser <425260+eric-wieser@users.noreply.github.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> | |||||
* | | Merge pull request #19444 from BvB93/shape_base | Charles Harris | 2021-07-19 | 2 | -5/+66 | |
|\ \ | | | | | | | ENH: Add annotations for `np.lib.shape_base` | |||||
| * | | TST: Add typing tests for `__array_prepare__` and `__array_wrap__` | Bas van Beek | 2021-07-09 | 1 | -5/+9 | |
| | | | ||||||
| * | | TST: Add typing tests for `np.lib.shape_base` | Bas van Beek | 2021-07-09 | 1 | -0/+57 | |
| |/ | ||||||
* | | Merge pull request #19421 from BvB93/getlimits | Charles Harris | 2021-07-19 | 1 | -0/+69 | |
|\ \ | | | | | | | ENH: Add annotations for `np.core.getlimits` | |||||
| * | | TST: Add typing tests for `np.core.getlimits` | Bas van Beek | 2021-07-09 | 1 | -0/+69 | |
| |/ | ||||||
* | | TST: Update the `dtype` typing tests | Bas van Beek | 2021-07-13 | 2 | -2/+10 | |
| | | ||||||
* | | TST: Fix a `GenericAlias` test failure for python 3.9.0 | Bas van Beek | 2021-07-12 | 1 | -1/+8 | |
|/ | ||||||
* | MAINT: Remove unused imports and unreachable code (#18762) | Elisha Hollander | 2021-07-07 | 1 | -3/+0 | |
| | | | * Remove unnecessary imports and minor fixes | |||||
* | TST: Update the typing tests | Bas van Beek | 2021-06-27 | 2 | -19/+19 | |
| | ||||||
* | TST: Update the typing tests for `np.number` subclasses | Bas van Beek | 2021-06-25 | 2 | -0/+42 | |
| | ||||||
* | Merge pull request #19295 from BvB93/typing-docs | Charles Harris | 2021-06-24 | 3 | -26/+44 | |
|\ | | | | | DOC: Add `versionadded` directives to `numpy.typing` | |||||
| * | DOC: Minor rewording | Bas van Beek | 2021-06-25 | 1 | -1/+1 | |
| | | ||||||
| * | DOC: Move the `versionadded` directive to the bottom of the bullet point | Bas van Beek | 2021-06-22 | 1 | -3/+4 | |
| | | | | | | | | Co-Authored-By: Charles Harris <charlesr.harris@gmail.com> | |||||
| * | DOC: Add `versionadded` directives to `numpy.typing` | Bas van Beek | 2021-06-22 | 3 | -3/+15 | |
| | | ||||||
| * | DOC: Move the `mypy`-plugin docs to its respective module | Bas van Beek | 2021-06-22 | 2 | -27/+32 | |
| | | ||||||
* | | TST: Test that the `numpy.typing` public API works in combination with ↵ | Bas van Beek | 2021-06-24 | 1 | -0/+90 | |
| | | | | | | | | | | | | | | | | runtime Introspection helpers * `typing.get_type_hints` * `typing.get_args` * `typing.get_origin` | |||||
* | | MAINT: Replace `"dtype[Any]"` with `dtype` in the definiton of `npt.ArrayLike` | Bas van Beek | 2021-06-24 | 1 | -1/+1 | |
| | | | | | | | | | | | | Strings and types that are not subscriptable during runtime can cause issues with runtime Introspection helpers such as `typing.get_type_hints`. While this is very much an upstream issue, the particular case of `npt.ArrayLike` can be quite easily resolved in numpy. | |||||
* | | Merge pull request #19135 from ganesh-k13/BUG_13236_remove_complex_floor_divide | Charles Harris | 2021-06-23 | 2 | -46/+0 | |
|\ \ | | | | | | | BUG: Remove complex floor divide | |||||
| * | | BUG, TST: Removed complex floor division cases in typing:reveal | Ganesh Kathiresan | 2021-05-30 | 1 | -24/+0 | |
| | | | ||||||
| * | | BUG, TST: Removed complex floor division cases in typing:pass | Ganesh Kathiresan | 2021-05-30 | 1 | -22/+0 | |
| | | |