diff options
| author | Bas van Beek <b.f.van.beek@vu.nl> | 2020-11-25 17:25:18 +0100 |
|---|---|---|
| committer | Bas van Beek <b.f.van.beek@vu.nl> | 2020-11-25 17:25:18 +0100 |
| commit | 670d94ffba5798559bff3538dba39ab01f050248 (patch) | |
| tree | 8b6a81a595ece5ce8e82422b0dc03ea4b7fcbb3f | |
| parent | 8775e5d44726fbd26631c657e904022b6b70500e (diff) | |
| download | numpy-670d94ffba5798559bff3538dba39ab01f050248.tar.gz | |
DOC: Add a note to provide clarification about `__all__: List[str]`
Addresses https://github.com/numpy/numpy/pull/17844#discussion_r530495392
| -rw-r--r-- | numpy/typing/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/typing/__init__.py b/numpy/typing/__init__.py index 054777c1a..e72e8fb4d 100644 --- a/numpy/typing/__init__.py +++ b/numpy/typing/__init__.py @@ -137,6 +137,9 @@ else: # Ensure that all objects within this module are accessible while # static type checking. This includes private ones, as we need them # for internal use. + # + # Declare to mypy that `__all__` is a list of strings without assigning + # an explicit value __all__: List[str] |
