You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pyright is using an unintended to_numpy override which is returning a datetime numpy array for general pd.Series[Any] objects.
To Reproduce
Check this with pyright.
fromtypingimportreveal_typeimportpandasaspdreveal_type(pd.Series().to_numpy())
# Type of "pd.Series().to_numpy()" is "ndarray[tuple[int], dtype[datetime64[date | int | None]]]"
Please complete the following information:
OS: ArchLinux
Python 3.13.4
Pyright: v1.1.405
pandas-stubs=2.3.2.250926
Additional context
I'm guessing this was introduced in 7ac98f2, but I haven't check that thoroughly.