summaryrefslogtreecommitdiff
path: root/numpy/typing/tests/test_typing.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: remove redundant open() modes and io.open() aliasMike Taves2022-10-291-1/+1
|
* MAINT: Split `numpy.typing` into a public and private componentBas van Beek2022-03-181-27/+27
| | | | i.e. `numpy.typing` and `numpy._typing`
* TST: Strip overload/protocol suggestions from reported mypy errorsBas van Beek2021-11-261-1/+1
|
* TST: Cache the compiled regex pattern in the `test_reveal` typing testsBas van Beek2021-11-261-3/+3
|
* TST,MAINT: Allow module names to be excluded in typing tests (#20287)Sayantika Banik2021-11-031-2/+13
|
* STY: Linting fixesBas van Beek2021-10-291-3/+6
|
* TST: Account for the platform-specific mapping of numpy- to ctypes-typesBas van Beek2021-10-291-0/+33
|
* TST,ENH: Print the relevant expression whenever a `test_fail` or ↵Bas van Beek2021-10-291-15/+28
| | | | `test_reveal` test fails
* TST: Strip the file-extensions from the parametrize IDBas van Beek2021-10-261-9/+3
|
* TST: Summarize the line number when `test_fail` receives unexpected mypy outputsBas van Beek2021-10-041-1/+3
|
* TST,MAINT: Change the `data/reveal/` and `data/fail/` files to stub-onlyBas van Beek2021-09-301-2/+2
| | | | The relevant files were already stub-only in all but name
* STY: Introduce various linting fixes to `numpy.typing`Bas van Beek2021-09-301-29/+79
| | | | | | * Introduce various linting fixes to `numpy.typing` * Add annotations to a few internal testing functions * Switch to PEP 585 `builtins` annotations where possible
* DOC: Typos found by codespellDimitri Papadopoulos2021-09-211-3/+3
|
* TST: Add typing tests for `np.ctypeslib.c_intp` and its mypy pluginBas van Beek2021-05-211-1/+8
|
* TST: Improve a number of mypy-related exception messagesBas van Beek2021-03-041-7/+21
|
* TST: Validate the mypy exit-codeBas van Beek2021-03-041-1/+2
| | | | Any value other than 0 and 1 is indicative of some sort of crash
* ENH/BUG: Add tests and correct typing issuesKevin Sheppard2021-02-241-1/+4
| | | | | | | Add tests for lower level components Correct errors found in testing Improve specificity of tests Other small fixes to docs and typing
* TST: Removed an incorrect `dict.values()` callBas van Beek2021-02-111-1/+1
|
* Merge pull request #18322 from BvB93/plugin-precisionCharles Harris2021-02-081-2/+56
|\ | | | | ENH: Add a mypy plugin for exposing platform-specific extended-precision types
| * TST: Add tests for the extended-precision pluginBas van Beek2021-02-051-2/+56
| |
* | TST: Provide a more useful exception message if the `pass` tests failBas van Beek2021-02-051-1/+2
|/
* 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-221-4/+1
|
* 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
|
* TST: Clear the mypy cache before running any typing testsBas van Beek2021-01-151-0/+10
|
* TST: Allow mypy output types to be specified via aliasesBas van Beek2020-12-231-3/+79
|
* TST: Fixed the line number offsetBas van Beek2020-10-221-1/+1
|
* Merge pull request #17597 from BvB93/testsMatti Picus2020-10-211-5/+42
|\ | | | | TST: Clean up the errors of the typing tests
| * TST: Clean up the errors of the typing testsBas van Beek2020-10-211-5/+42
| |
* | TST: Ignore all `*` characters in the reveal testsBas van Beek2020-10-171-2/+3
|/ | | | | | | | Mypy uses a `*` whenever an annotation or one of its parameters is based on a TypeVar. Its added value is neglible and it unnecessarily complicates the `reveal` tests so lets just ignore them. Note that this is done after running mypy, so it won't affect cases where `*` is used as multiplication operator.
* TST: Mark the typing tests as slowBas van Beek2020-10-011-0/+4
|
* MAINT: Move typing testsCharles Harris2020-09-071-0/+140
Move them into a new `numpy/typing/tests directory`