ai-content-maker/.venv/Lib/site-packages/pandas/_libs/tslibs/np_datetime.pyi

21 lines
569 B
Python
Raw Permalink Normal View History

2024-05-03 04:18:51 +03:00
import numpy as np
from pandas._typing import npt
class OutOfBoundsDatetime(ValueError): ...
class OutOfBoundsTimedelta(ValueError): ...
# only exposed for testing
def py_get_unit_from_dtype(dtype: np.dtype): ...
def py_td64_to_tdstruct(td64: int, unit: int) -> dict: ...
def astype_overflowsafe(
arr: np.ndarray,
dtype: np.dtype,
copy: bool = ...,
round_ok: bool = ...,
) -> np.ndarray: ...
def is_unitless(dtype: np.dtype) -> bool: ...
def compare_mismatched_resolutions(
left: np.ndarray, right: np.ndarray, op
) -> npt.NDArray[np.bool_]: ...