diff options
Diffstat (limited to 'numpy/lib')
| -rw-r--r-- | numpy/lib/__init__.pyi | 4 | ||||
| -rw-r--r-- | numpy/lib/npyio.py | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/numpy/lib/__init__.pyi b/numpy/lib/__init__.pyi index bb5224247..25640ec07 100644 --- a/numpy/lib/__init__.pyi +++ b/numpy/lib/__init__.pyi @@ -1,6 +1,8 @@ import math as math from typing import Any, List +from numpy._pytesttester import PytestTester + from numpy import ( ndenumerate as ndenumerate, ndindex as ndindex, @@ -237,6 +239,8 @@ from numpy.core.multiarray import ( ) __all__: List[str] +__path__: List[str] +test: PytestTester __version__ = version emath = scimath diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index c4d625bd3..d12482cb7 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -581,9 +581,9 @@ def savez(file, *args, **kwds): its list of arrays (with the ``.files`` attribute), and for the arrays themselves. - When saving dictionaries, the dictionary keys become filenames - inside the ZIP archive. Therefore, keys should be valid filenames. - E.g., avoid keys that begin with ``/`` or contain ``.``. + Keys passed in `kwds` are used as filenames inside the ZIP archive. + Therefore, keys should be valid filenames; e.g., avoid keys that begin with + ``/`` or contain ``.``. When naming variables with keyword arguments, it is not possible to name a variable ``file``, as this would cause the ``file`` argument to be defined |
