diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2020-11-25 13:59:33 +0100 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2020-12-22 17:24:04 +0100 |
commit | fd17d1eb73b93facafac84ecc24f3117de5247b4 (patch) | |
tree | 7e418fbd0b4e2d754c2192f59d4018dd682592ec | |
parent | 0917df2953ebe716c45c92671cb652eacd7dd8fd (diff) | |
download | numpy-fd17d1eb73b93facafac84ecc24f3117de5247b4.tar.gz |
TST: Add `numpy.typing.mypy_plugin` to the list of public modules
-rw-r--r-- | numpy/tests/test_public_api.py | 1 | ||||
-rw-r--r-- | numpy/typing/mypy_plugin.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/numpy/tests/test_public_api.py b/numpy/tests/test_public_api.py index 7b2a590c3..69430eeda 100644 --- a/numpy/tests/test_public_api.py +++ b/numpy/tests/test_public_api.py @@ -170,6 +170,7 @@ PUBLIC_MODULES = ['numpy.' + s for s in [ "random", "testing", "typing", + "typing.mypy_plugin", "version", ]] diff --git a/numpy/typing/mypy_plugin.py b/numpy/typing/mypy_plugin.py index 5110e3707..341870167 100644 --- a/numpy/typing/mypy_plugin.py +++ b/numpy/typing/mypy_plugin.py @@ -8,6 +8,8 @@ import mypy.types from mypy.types import Type from mypy.plugin import Plugin, AnalyzeTypeContext +__all__: t.List[str] = [] + HookFunc = t.Callable[[AnalyzeTypeContext], Type] |