Skip to content

Commit 718938f

Browse files
authored
fix series.astype dtype argument for pandas (#64)
1 parent 1a96833 commit 718938f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/series.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
431431
) -> Series[S1]: ...
432432
def astype(
433433
self,
434-
dtype: Union[S1, _str],
434+
dtype: Union[S1, _str, Type[Scalar]],
435435
copy: _bool = ...,
436436
errors: Union[_str, Literal["raise", "ignore"]] = ...,
437437
) -> Series: ...

0 commit comments

Comments
 (0)