diff --git a/pandas/core/series.pyi b/pandas/core/series.pyi index bef8b9c0..50078500 100644 --- a/pandas/core/series.pyi +++ b/pandas/core/series.pyi @@ -431,7 +431,7 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]): ) -> Series[S1]: ... def astype( self, - dtype: Union[S1, _str], + dtype: Union[S1, _str, Type[Scalar]], copy: _bool = ..., errors: Union[_str, Literal["raise", "ignore"]] = ..., ) -> Series: ...