For Series[float] and Series[int], the overloaded to_numpy functions are not expecting a np.dtype for the dtype arg. Maybe overloads missing ?
To Reproduce
Pyright will report an error for this line
pd.Series(np.empty(0, np.dtype("f8"))).to_numpy(dtype=np.dtype("f8"))
For Series[float] and Series[int], the overloaded to_numpy functions are not expecting a np.dtype for the dtype arg. Maybe overloads missing ?
To Reproduce
Pyright will report an error for this line
pd.Series(np.empty(0, np.dtype("f8"))).to_numpy(dtype=np.dtype("f8"))