summaryrefslogtreecommitdiff
path: root/numpy/core/_internal.pyi
Commit message (Collapse)AuthorAgeFilesLines
* STY: Use subscriptable `builtins` types over the generic aliases in `typing`Bas van Beek2021-12-231-4/+4
|
* STY: Replace `Optional` with the `|` operatorBas van Beek2021-12-221-2/+2
|
* ENH: Add a mypy plugin for inferring the precision of `np.ctypeslib.c_intp`Bas van Beek2021-05-211-8/+3
|
* DEP: Remove annotations for 4 deprecated methodsBas van Beek2021-05-181-4/+0
|
* DOC: Clarify a comment related to `int_ptr_t`Bas van Beek2021-05-181-2/+4
| | | | Co-Authored-By: Eric Wieser <425260+eric-wieser@users.noreply.github.com>
* ENH: Improve the annotations of `np.core._internal`Bas van Beek2021-05-181-13/+32
|
* ENH: add type stubs from numpy-stubsJosh Wilson2020-06-061-0/+18
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