diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2021-05-21 20:40:42 +0200 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2021-05-21 21:15:16 +0200 |
commit | 5eca599bccb93edccf9a61de76ddc6125b5a76cf (patch) | |
tree | fd81b27671d29455bb3a4f1b88a6e441472eec98 /numpy/typing/tests/test_typing.py | |
parent | 869243e50c5a607b792d5102bd0ce360c377e8eb (diff) | |
download | numpy-5eca599bccb93edccf9a61de76ddc6125b5a76cf.tar.gz |
TST: Add typing tests for `np.ctypeslib.c_intp` and its mypy plugin
Diffstat (limited to 'numpy/typing/tests/test_typing.py')
-rw-r--r-- | numpy/typing/tests/test_typing.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/numpy/typing/tests/test_typing.py b/numpy/typing/tests/test_typing.py index be08c1359..35558c880 100644 --- a/numpy/typing/tests/test_typing.py +++ b/numpy/typing/tests/test_typing.py @@ -8,7 +8,11 @@ from typing import Optional, IO, Dict, List import pytest import numpy as np -from numpy.typing.mypy_plugin import _PRECISION_DICT, _EXTENDED_PRECISION_LIST +from numpy.typing.mypy_plugin import ( + _PRECISION_DICT, + _EXTENDED_PRECISION_LIST, + _C_INTP, +) try: from mypy import api @@ -219,6 +223,9 @@ def _construct_format_dict(): # numpy.typing "_NBitInt": dct['_NBitInt'], + + # numpy.ctypeslib + "c_intp": f"ctypes.{_C_INTP}" } |