Check if a dtype is a subclass of the numpy datetime types
(dtype: DTypeLike | None)
| 2066 | |
| 2067 | |
| 2068 | def is_np_datetime_like(dtype: DTypeLike | None) -> bool: |
| 2069 | """Check if a dtype is a subclass of the numpy datetime types""" |
| 2070 | return np.issubdtype(dtype, np.datetime64) or np.issubdtype(dtype, np.timedelta64) |
| 2071 | |
| 2072 | |
| 2073 | def is_np_timedelta_like(dtype: DTypeLike | None) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…