TYP: Update timestamps.pyi by hauntsaninja · Pull Request #47756 · pandas-dev/pandas (original) (raw)

Btw, what is the relationship between the stubs in pandas-dev/pandas.git and the stubs in pandas-dev/pandas-stubs.git?

Ideally, they should be the same (and I hope that in the future they are the same). In many cases, pandas and pandas-stubs are/will hopefully be aligned but in certain cases, it is impossible(?) to find a "good" annotation. For pandas-stubs, "good" roughly means it works for users. For pandas, "good" roughly means what is technically possible (e.g., pd.Timestamp(float("NaN")) returns NaTType or another difficult case is __getitem__ #46616).