summaryrefslogtreecommitdiff
path: root/numpy/tests/test_typing.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Move typing testsCharles Harris2020-09-071-142/+0
| | | | Move them into a new `numpy/typing/tests directory`
* TST: Don't run typing tests on lines that are commented outBas van Beek2020-09-011-1/+1
| | | | Addresses https://github.com/numpy/numpy/pull/17214#discussion_r481239468
* MAINT: modify mypy error line parsing to work on windowsJosh Wilson2020-06-071-2/+14
| | | | It currently splits on ":", which causes problems with drives.
* MAINT: move typing tests cases into a subdirectory of numpy/testsJosh Wilson2020-06-071-1/+4
|
* ENH: add type stubs from numpy-stubsJosh Wilson2020-06-061-0/+127
Add the type stubs and tests from numpy-stubs. Things this entails: - Copy over the stubs (numpy/__init__.pyi and numpy/core/_internal.pyi) - The only modification made was removing `ndarray.tostring` since it is deprecated - Update some setup.py files to include pyi files - Move the tests from numpy-stubs/tests into numpy/tests - Skip them if mypy is not installed (planning on setting up CI in a future PR) - Add a mypy.ini; use it to configure mypy in the tests - It tells mypy where to find NumPy in the test env - It ignores internal NumPy type errors (since we only want to consider errors from the tests cases) - Some small edits were made to fix test cases that were emitting deprecation warnings - Add numpy/py.typed so that the types are picked up in an installed version of NumPy