Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | TST: Removed an incorrect `dict.values()` call | Bas van Beek | 2021-02-11 | 1 | -1/+1 | |
| | | ||||||
| * | TST: Add typing tests for `np.core.einsumfunc` | Bas van Beek | 2021-02-11 | 3 | -0/+120 | |
| | | ||||||
| * | MAINT: Added `_DTypeLikeComplex_co`, an alias of all dtype-likes that can be ↵ | Bas van Beek | 2021-02-10 | 2 | -0/+9 | |
| | | | | | | | | cast into `complex` | |||||
* | | BUG: Fix typo in char_codes | Kevin Sheppard | 2021-02-12 | 1 | -2/+2 | |
|/ | | | | Add missing comma in lists of char codes | |||||
* | TST: Add typing tests for `np.lib.ufunclike` | Bas van Beek | 2021-02-09 | 3 | -0/+98 | |
| | ||||||
* | Merge pull request #18322 from BvB93/plugin-precision | Charles Harris | 2021-02-08 | 7 | -33/+239 | |
|\ | | | | | ENH: Add a mypy plugin for exposing platform-specific extended-precision types | |||||
| * | ENH: Add support for extended-precision `np.number` arithmetic | Bas van Beek | 2021-02-05 | 2 | -19/+45 | |
| | | ||||||
| * | TST: Add tests for the extended-precision plugin | Bas van Beek | 2021-02-05 | 2 | -2/+73 | |
| | | ||||||
| * | ENH: Add a plugin for exposing platform-specific extended-precision `np.number`s | Bas van Beek | 2021-02-05 | 2 | -8/+73 | |
| | | ||||||
| * | ENH: Add support for all potential extended-precision `np.number`s | Bas van Beek | 2021-02-05 | 1 | -0/+42 | |
| | | ||||||
| * | STY: Remove the string-encasing of certain annotations | Bas van Beek | 2021-02-05 | 1 | -4/+6 | |
| | | | | | | | | String-encasing is redunant now that we can use `from __future__ import annotations` | |||||
* | | TST: Provide a more useful exception message if the `pass` tests fail | Bas van Beek | 2021-02-05 | 1 | -1/+2 | |
| | | ||||||
* | | TST: Add typing tests for `ndarray.__floordivide__` | Bas van Beek | 2021-02-05 | 3 | -0/+239 | |
| | | ||||||
* | | MAINT: Clarify that `timdelta64 / bool` raises | Bas van Beek | 2021-02-05 | 1 | -0/+2 | |
|/ | ||||||
* | Merge pull request #18302 from BvB93/missing-attr | Charles Harris | 2021-02-02 | 2 | -2/+24 | |
|\ | | | | | MAINT: Add missing placeholder annotations | |||||
| * | MAINT: Add missing `__all__` annotations | Bas van Beek | 2021-02-01 | 2 | -2/+24 | |
| | | ||||||
* | | Merge pull request #18284 from BvB93/aliases | Charles Harris | 2021-02-01 | 2 | -0/+10 | |
|\ \ | | | | | | | ENH: Add annotations for the remaining `np.generic` aliases | |||||
| * | | ENH: Add annotations for the remaining `np.generic` aliases | Bas van Beek | 2021-02-01 | 2 | -0/+10 | |
| |/ | ||||||
* | | Merge pull request #18228 from BvB93/comparison3 | Charles Harris | 2021-02-01 | 4 | -63/+371 | |
|\ \ | |/ |/| | ENH: Add dtype-support to the ufunc-based `ndarray` magic methods 2/4 | |||||
| * | TST: Added new tests for `ndarray` arithmetic | Bas van Beek | 2021-01-25 | 4 | -63/+371 | |
| | | ||||||
* | | Merge pull request #18236 from BvB93/dtype-like | Ralf Gommers | 2021-01-29 | 3 | -10/+180 | |
|\ \ | | | | | | | ENH: Add aliases for commonly used dtype-like objects | |||||
| * | | MAINT: typo fix: `_UInt8Codes` -> `_Int8Codes` | Bas van Beek | 2021-01-29 | 1 | -1/+1 | |
| | | | ||||||
| * | | ENH: Added aliases for commonly used dtype-like objects | Bas van Beek | 2021-01-26 | 2 | -4/+165 | |
| | | | ||||||
| * | | MAINT: Ensure that the `_SupportsDType` protocol can only take dtypes; not ↵ | Bas van Beek | 2021-01-26 | 2 | -7/+16 | |
| | | | | | | | | | | | | | | | | | | arbitrary dtype-like objects xref https://github.com/numpy/numpy/pull/13578 | |||||
* | | | MAINT: Removed annotations for `__NUMPY_SETUP__`, `__deprecated_attrs__` and ↵ | Bas van Beek | 2021-01-27 | 3 | -6/+4 | |
| | | | | | | | | | | | | | | | | | | `__expired_functions__` Removing them as their "public" nature is somewhat questionable. | |||||
* | | | TST: Add module-based tests to the `pass` tests | Bas van Beek | 2021-01-25 | 1 | -0/+23 | |
| | | | ||||||
* | | | ENH: Add annotations for certain module-level dunders | Bas van Beek | 2021-01-25 | 1 | -0/+8 | |
|/ / | ||||||
* | | TST: Fix two failing typing testsdependabot/pip/mypy-0.800 | Bas van Beek | 2021-01-25 | 1 | -2/+2 | |
|/ | | | | | Mypy 0.800 changed one of its error messages; the `fail` tests have now been altered to reflect this change | |||||
* | Merge pull request #18204 from BvB93/tst_mypy | Charles Harris | 2021-01-24 | 2 | -44/+46 | |
|\ | | | | | TST: Speed up the typing tests | |||||
| * | MAINT: Do not split at the first `:` character if the path contains a ↵ | Bas van Beek | 2021-01-22 | 1 | -2/+10 | |
| | | | | | | | | windows drive | |||||
| * | TST: Enable the `show_absolute_path` option in mypy.ini | Bas van Beek | 2021-01-22 | 2 | -4/+2 | |
| | | ||||||
| * | TST: Alias `OUTPUT_MYPY` so that it appears in the local namespace | Bas van Beek | 2021-01-22 | 1 | -6/+13 | |
| | | ||||||
| * | MAINT: Manually assign the full path rather than using `os.path.abspath` | Bas van Beek | 2021-01-22 | 1 | -1/+2 | |
| | | | | | | | | Fixes an issue with the azure (windows) tests where `abspath` would point to the wrong directory | |||||
| * | TST: Run mypy once and cache the results | Bas van Beek | 2021-01-21 | 1 | -45/+33 | |
| | | ||||||
* | | ENH: Add dtype support to the array comparison ops (#18128) | Bas van Beek | 2021-01-21 | 6 | -65/+175 | |
|/ | | | | | | | | | | | | | | | | | | | | | * ENH: Added `_ArrayLikeNumber` * ENH: Added dtype support to the array comparison ops * MAINT: Made `dtype` and `ndarray` covariant The dtypes scalar-type and ndarrays' dtype are now covariant instead of invariant. This change is necasary in order to ensure that all generic subclasses can be used as underlying scalar type. * TST: Updated the comparison typing tests * MAINT: Fixed an issue where certain `array > arraylike` operations where neglected More specifically operations between array-likes of `timedelta64` and `ndarray`s that can be cast into `timedelta64`. For example: ar_i = np.array([1]) seq_m = [np.timedelta64()] ar_i > seq_m | |||||
* | DOC: Added a missing `Union` import | Bas van Beek | 2021-01-19 | 1 | -1/+1 | |
| | ||||||
* | TST: Added a tests for `number` invariancy | Bas van Beek | 2021-01-19 | 1 | -0/+6 | |
| | ||||||
* | MAINT: Adjusted the return-type of `number` ops to `Any` | Bas van Beek | 2021-01-19 | 1 | -1/+1 | |
| | ||||||
* | DOC,TST: Update the `NBitBase` example | Bas van Beek | 2021-01-19 | 2 | -4/+7 | |
| | ||||||
* | MAINT: Changed the `NBitBase` variancy in `number` from co- to invariant | Bas van Beek | 2021-01-19 | 1 | -63/+63 | |
| | ||||||
* | Merge pull request #18191 from pmav99/panos/fix_18190 | Charles Harris | 2021-01-19 | 1 | -2/+2 | |
|\ | | | | | STY: Use explicit reexports for numpy.typing objects | |||||
| * | STY: Use explicit reexports for numpy.typing objects | pmav99 | 2021-01-19 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | `mypy --strict` is disabling `implicit_reexport`. Consequently, when we try to import `ArrayLike` and `DTypeLike` from `numpy.typing`, mypy throws an error. With this commit we add explicit "reexports" for these two objects. Fixes #18190 | |||||
* | | MAINT: Simplify a union | Bas van Beek | 2021-01-18 | 1 | -12/+12 | |
| | | | | | | | | `_BoolLike_co` is already a subtype of `_IntLike_co`, no nead the use an explicit union here | |||||
* | | MAINT: Renamed `_ArrayLike<X>` to `_ArrayLike<X>_co` | Bas van Beek | 2021-01-18 | 2 | -23/+23 | |
| | | ||||||
* | | MAINT: Renamed `<X>Like` to `<X>Like_co` | Bas van Beek | 2021-01-18 | 2 | -24/+24 | |
|/ | ||||||
* | TST: Clear the mypy cache before running any typing tests | Bas van Beek | 2021-01-15 | 1 | -0/+10 | |
| | ||||||
* | DEP: Deprecate `data_type.dtype` if attribute is not already a dtype (#13578) | Sebastian Berg | 2021-01-06 | 1 | -1/+1 | |
| | | | | | | * DEP: Deprecate `data_type.dtype` if attribute is not already a dtype After the deprecation, a recursive lookup for `.dtype` will not be possible, since `.dtype` has to be a dtype instance. | |||||
* | TST: Use type-aliases for describing `np.number` subclasses | Bas van Beek | 2020-12-23 | 8 | -434/+432 | |
| | ||||||
* | TST: Allow mypy output types to be specified via aliases | Bas van Beek | 2020-12-23 | 1 | -3/+79 | |
| | ||||||
* | Merge pull request #17843 from BvB93/precision-plugin | Ralf Gommers | 2020-12-22 | 14 | -76/+487 | |
|\ | | | | | ENH: Add a mypy plugin for inferring platform-specific `np.number` precisions |