DEPR: Deprecate use of un-supported numpy dt64/td64 dtype for pandas.array by rmhowe425 · Pull Request #53439 · pandas-dev/pandas (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbrockmendel Ah okay understood!

Looking at the implementation, it looks like the changes for this PR need to be made either in _ensure_nanosecond_dtype() in cast.py, or in the implementation for is_supported_unit() in dtypes.pyi.

Seeing that is_supported_unit() in dtypes.pyi is an interface, I'm assuming that there is a definition for this function for pd.array, but I don't see it. Would you be able to shed some light on how this interface method is being used?