diff options
| author | Bas van Beek <b.f.van.beek@vu.nl> | 2021-12-15 14:25:14 +0100 |
|---|---|---|
| committer | Charles Harris <charlesr.harris@gmail.com> | 2021-12-16 12:16:47 -0700 |
| commit | 9e1ad76bebb85f10763baddea4bc4f1d5f42ded1 (patch) | |
| tree | dc0fb1b060e7aae48922476096c0a2fdc978d8a8 /numpy/lib | |
| parent | 0bbe78772c50db4fe3d1c5b8dbec439dc45c00ba (diff) | |
| download | numpy-9e1ad76bebb85f10763baddea4bc4f1d5f42ded1.tar.gz | |
MAINT: Allow the `loadtxt` comments parameter to be `None`
Diffstat (limited to 'numpy/lib')
| -rw-r--r-- | numpy/lib/npyio.pyi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/npyio.pyi b/numpy/lib/npyio.pyi index 8fd36ca6f..75d06e9e3 100644 --- a/numpy/lib/npyio.pyi +++ b/numpy/lib/npyio.pyi @@ -140,7 +140,7 @@ def savez_compressed( def loadtxt( fname: str | os.PathLike[str] | Iterable[str] | Iterable[bytes], dtype: None = ..., - comments: str | Sequence[str] = ..., + comments: None | str | Sequence[str] = ..., delimiter: None | str = ..., converters: None | Mapping[int | str, Callable[[str], Any]] = ..., skiprows: int = ..., @@ -156,7 +156,7 @@ def loadtxt( def loadtxt( fname: str | os.PathLike[str] | Iterable[str] | Iterable[bytes], dtype: _DTypeLike[_SCT], - comments: str | Sequence[str] = ..., + comments: None | str | Sequence[str] = ..., delimiter: None | str = ..., converters: None | Mapping[int | str, Callable[[str], Any]] = ..., skiprows: int = ..., @@ -172,7 +172,7 @@ def loadtxt( def loadtxt( fname: str | os.PathLike[str] | Iterable[str] | Iterable[bytes], dtype: DTypeLike, - comments: str | Sequence[str] = ..., + comments: None | str | Sequence[str] = ..., delimiter: None | str = ..., converters: None | Mapping[int | str, Callable[[str], Any]] = ..., skiprows: int = ..., |
