summaryrefslogtreecommitdiff
path: root/numpy/typing
Commit message (Collapse)AuthorAgeFilesLines
...
| * TST: Removed an incorrect `dict.values()` callBas van Beek2021-02-111-1/+1
| |
| * TST: Add typing tests for `np.core.einsumfunc`Bas van Beek2021-02-113-0/+120
| |
| * MAINT: Added `_DTypeLikeComplex_co`, an alias of all dtype-likes that can be ↵Bas van Beek2021-02-102-0/+9
| | | | | | | | cast into `complex`
* | BUG: Fix typo in char_codesKevin Sheppard2021-02-121-2/+2
|/ | | | Add missing comma in lists of char codes
* TST: Add typing tests for `np.lib.ufunclike`Bas van Beek2021-02-093-0/+98
|
* Merge pull request #18322 from BvB93/plugin-precisionCharles Harris2021-02-087-33/+239
|\ | | | | ENH: Add a mypy plugin for exposing platform-specific extended-precision types
| * ENH: Add support for extended-precision `np.number` arithmeticBas van Beek2021-02-052-19/+45
| |
| * TST: Add tests for the extended-precision pluginBas van Beek2021-02-052-2/+73
| |
| * ENH: Add a plugin for exposing platform-specific extended-precision `np.number`sBas van Beek2021-02-052-8/+73
| |
| * ENH: Add support for all potential extended-precision `np.number`sBas van Beek2021-02-051-0/+42
| |
| * STY: Remove the string-encasing of certain annotationsBas van Beek2021-02-051-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 failBas van Beek2021-02-051-1/+2
| |
* | TST: Add typing tests for `ndarray.__floordivide__`Bas van Beek2021-02-053-0/+239
| |
* | MAINT: Clarify that `timdelta64 / bool` raisesBas van Beek2021-02-051-0/+2
|/
* Merge pull request #18302 from BvB93/missing-attrCharles Harris2021-02-022-2/+24
|\ | | | | MAINT: Add missing placeholder annotations
| * MAINT: Add missing `__all__` annotationsBas van Beek2021-02-012-2/+24
| |
* | Merge pull request #18284 from BvB93/aliasesCharles Harris2021-02-012-0/+10
|\ \ | | | | | | ENH: Add annotations for the remaining `np.generic` aliases
| * | ENH: Add annotations for the remaining `np.generic` aliasesBas van Beek2021-02-012-0/+10
| |/
* | Merge pull request #18228 from BvB93/comparison3Charles Harris2021-02-014-63/+371
|\ \ | |/ |/| ENH: Add dtype-support to the ufunc-based `ndarray` magic methods 2/4
| * TST: Added new tests for `ndarray` arithmeticBas van Beek2021-01-254-63/+371
| |
* | Merge pull request #18236 from BvB93/dtype-likeRalf Gommers2021-01-293-10/+180
|\ \ | | | | | | ENH: Add aliases for commonly used dtype-like objects
| * | MAINT: typo fix: `_UInt8Codes` -> `_Int8Codes`Bas van Beek2021-01-291-1/+1
| | |
| * | ENH: Added aliases for commonly used dtype-like objectsBas van Beek2021-01-262-4/+165
| | |
| * | MAINT: Ensure that the `_SupportsDType` protocol can only take dtypes; not ↵Bas van Beek2021-01-262-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 Beek2021-01-273-6/+4
| | | | | | | | | | | | | | | | | | `__expired_functions__` Removing them as their "public" nature is somewhat questionable.
* | | TST: Add module-based tests to the `pass` testsBas van Beek2021-01-251-0/+23
| | |
* | | ENH: Add annotations for certain module-level dundersBas van Beek2021-01-251-0/+8
|/ /
* | TST: Fix two failing typing testsdependabot/pip/mypy-0.800Bas van Beek2021-01-251-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_mypyCharles Harris2021-01-242-44/+46
|\ | | | | TST: Speed up the typing tests
| * MAINT: Do not split at the first `:` character if the path contains a ↵Bas van Beek2021-01-221-2/+10
| | | | | | | | windows drive
| * TST: Enable the `show_absolute_path` option in mypy.iniBas van Beek2021-01-222-4/+2
| |
| * TST: Alias `OUTPUT_MYPY` so that it appears in the local namespaceBas van Beek2021-01-221-6/+13
| |
| * MAINT: Manually assign the full path rather than using `os.path.abspath`Bas van Beek2021-01-221-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 resultsBas van Beek2021-01-211-45/+33
| |
* | ENH: Add dtype support to the array comparison ops (#18128)Bas van Beek2021-01-216-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` importBas van Beek2021-01-191-1/+1
|
* TST: Added a tests for `number` invariancyBas van Beek2021-01-191-0/+6
|
* MAINT: Adjusted the return-type of `number` ops to `Any`Bas van Beek2021-01-191-1/+1
|
* DOC,TST: Update the `NBitBase` exampleBas van Beek2021-01-192-4/+7
|
* MAINT: Changed the `NBitBase` variancy in `number` from co- to invariantBas van Beek2021-01-191-63/+63
|
* Merge pull request #18191 from pmav99/panos/fix_18190Charles Harris2021-01-191-2/+2
|\ | | | | STY: Use explicit reexports for numpy.typing objects
| * STY: Use explicit reexports for numpy.typing objectspmav992021-01-191-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 unionBas van Beek2021-01-181-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 Beek2021-01-182-23/+23
| |
* | MAINT: Renamed `<X>Like` to `<X>Like_co`Bas van Beek2021-01-182-24/+24
|/
* TST: Clear the mypy cache before running any typing testsBas van Beek2021-01-151-0/+10
|
* DEP: Deprecate `data_type.dtype` if attribute is not already a dtype (#13578)Sebastian Berg2021-01-061-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` subclassesBas van Beek2020-12-238-434/+432
|
* TST: Allow mypy output types to be specified via aliasesBas van Beek2020-12-231-3/+79
|
* Merge pull request #17843 from BvB93/precision-pluginRalf Gommers2020-12-2214-76/+487
|\ | | | | ENH: Add a mypy plugin for inferring platform-specific `np.number` precisions