Skip to content

Commit b5daae5

Browse files
authored
TYP: npyio: loadtxt: usecols: add None type
According to the previous type hint, None was not allowed, but since None is the default value, then None IS allowed
1 parent 98e0182 commit b5daae5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

numpy/lib/_npyio_impl.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def loadtxt(
158158
delimiter: None | str = ...,
159159
converters: None | Mapping[int | str, Callable[[str], Any]] = ...,
160160
skiprows: int = ...,
161-
usecols: int | Sequence[int] = ...,
161+
usecols: int | Sequence[int] | None = ...,
162162
unpack: bool = ...,
163163
ndmin: L[0, 1, 2] = ...,
164164
encoding: None | str = ...,
@@ -175,7 +175,7 @@ def loadtxt(
175175
delimiter: None | str = ...,
176176
converters: None | Mapping[int | str, Callable[[str], Any]] = ...,
177177
skiprows: int = ...,
178-
usecols: int | Sequence[int] = ...,
178+
usecols: int | Sequence[int] | None = ...,
179179
unpack: bool = ...,
180180
ndmin: L[0, 1, 2] = ...,
181181
encoding: None | str = ...,
@@ -192,7 +192,7 @@ def loadtxt(
192192
delimiter: None | str = ...,
193193
converters: None | Mapping[int | str, Callable[[str], Any]] = ...,
194194
skiprows: int = ...,
195-
usecols: int | Sequence[int] = ...,
195+
usecols: int | Sequence[int] | None = ...,
196196
unpack: bool = ...,
197197
ndmin: L[0, 1, 2] = ...,
198198
encoding: None | str = ...,

0 commit comments

Comments
 (0)