summaryrefslogtreecommitdiff
path: root/numpy/typing/mypy_plugin.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Split `numpy.typing` into a public and private componentBas van Beek2022-03-181-4/+4
| | | | i.e. `numpy.typing` and `numpy._typing`
* Indent Update #20019Sista Seetaram2021-10-041-1/+1
| | | Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
* MAINT:redundant 'else' statement with 'for' loop#19077Sista Seetaram2021-10-021-3/+2
|
* STY: Introduce various linting fixes to `numpy.typing`Bas van Beek2021-09-301-16/+20
| | | | | | * Introduce various linting fixes to `numpy.typing` * Add annotations to a few internal testing functions * Switch to PEP 585 `builtins` annotations where possible
* DOC: Minor rewordingBas van Beek2021-06-251-1/+1
|
* DOC: Move the `versionadded` directive to the bottom of the bullet pointBas van Beek2021-06-221-3/+4
| | | | Co-Authored-By: Charles Harris <charlesr.harris@gmail.com>
* DOC: Add `versionadded` directives to `numpy.typing`Bas van Beek2021-06-221-3/+3
|
* DOC: Move the `mypy`-plugin docs to its respective moduleBas van Beek2021-06-221-1/+31
|
* Merge pull request #19062 from BvB93/ctypes-pluginCharles Harris2021-05-281-15/+47
|\ | | | | ENH: Add a mypy plugin for inferring the precision of `np.ctypeslib.c_intp`
| * MAINT: Refactor the `c_intp`-type inferring functionBas van Beek2021-05-251-3/+9
| | | | | | | | | | | | Model it after `np.core._internal._getintp_ctype` Co-Authored-By: Eric Wieser <425260+eric-wieser@users.noreply.github.com>
| * ENH: Add a mypy plugin for inferring the precision of `np.ctypeslib.c_intp`Bas van Beek2021-05-211-15/+41
| |
* | STY: Use the PEP 604 pipe operator over `Optional` and `Union`Bas van Beek2021-05-271-2/+2
|/ | | | PEP 604 -- Allow writing union types as X | Y
* ENH: Add a plugin for exposing platform-specific extended-precision `np.number`sBas van Beek2021-02-051-0/+60
|
* 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`
* Update mypy_plugin.pyBas van Beek2020-12-221-1/+1
|
* MAINT: Import `mypy` via a try/except approachBas van Beek2020-12-221-15/+23
| | | | Fixes an issue where the `pypy` tests would fail
* TST: Add `numpy.typing.mypy_plugin` to the list of public modulesBas van Beek2020-12-221-0/+2
|
* DOC: Add a docstring to the mypy plugin entry-pointBas van Beek2020-12-221-0/+1
|
* ENH: Added a mypy plugin for handling platform-specific `np.number` precisionsBas van Beek2020-12-221-0/+58