summaryrefslogtreecommitdiff
path: root/numpy/tests/typing/pass/scalars.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Move typing testsCharles Harris2020-09-071-129/+0
| | | | Move them into a new `numpy/typing/tests directory`
* MAINT: Only allow `SupportsIndex` for python >= 3.8Bas van Beek2020-09-011-3/+7
| | | | See https://bugs.python.org/issue20092
* ENH: Add an alias for `Union[str, bytes]`; updated two `np.generic` constructorsBas van Beek2020-09-011-0/+2
|
* TST: Add tests for the new `generic` constructorsBas van Beek2020-09-011-3/+28
|
* Allow `None` to be passed to certain `generic` subclassesBas van Beek2020-06-251-0/+6
| | | | | | | Affected generic subclasses: * `floating` * `complexfloating` * `datetime64`
* MAINT: changed np.generic arguments to positional-only (#16583)Bas van Beek2020-06-141-0/+4
| | | | | | | | | Closes https://github.com/numpy/numpy/issues/16577. Make the arguments of `np.generic` constructors positional-only. Also fix the constructor of`np.bytes_`: encoding is only supported when supplied a string. The opposite holds for `np.str_`.
* MAINT: move typing tests cases into a subdirectory of numpy/testsJosh Wilson2020-06-071-0/+88