diff options
author | szsdk <shen_zhou@u.nus.edu> | 2021-02-10 10:20:45 +0800 |
---|---|---|
committer | szsdk <shen_zhou@u.nus.edu> | 2021-02-10 10:20:45 +0800 |
commit | 98eb21ff80c7fd36ae16a52746dbde1a07aff36f (patch) | |
tree | 4671f51e09870c7f1b5c7c288d5ab4b83f204749 /numpy | |
parent | f6a71feac4ac1623c8cd69dea5a560fe1e9af00d (diff) | |
download | numpy-98eb21ff80c7fd36ae16a52746dbde1a07aff36f.tar.gz |
BUG: improve the interface of `tofile` method
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/__init__.pyi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi index 351cacffa..a3d4fab2d 100644 --- a/numpy/__init__.pyi +++ b/numpy/__init__.pyi @@ -907,7 +907,7 @@ class _ArrayOrScalarCommon: # NOTE: `tostring()` is deprecated and therefore excluded # def tostring(self, order=...): ... def tofile( - self, fid: Union[IO[bytes], str], sep: str = ..., format: str = ... + self, fid: Union[IO[bytes], str, bytes, os.PathLike[Any]], sep: str = ..., format: str = ... ) -> None: ... # generics and 0d arrays return builtin scalars def tolist(self) -> Any: ... |