diff --git a/pandas-stubs/_libs/tslibs/dtypes.pyi b/pandas-stubs/_libs/tslibs/dtypes.pyi index 7d0a43ab2..6b39cecfd 100644 --- a/pandas-stubs/_libs/tslibs/dtypes.pyi +++ b/pandas-stubs/_libs/tslibs/dtypes.pyi @@ -1,6 +1,3 @@ -from enum import Enum -from typing import cast - from .offsets import BaseOffset class PeriodDtypeBase: @@ -28,26 +25,3 @@ class FreqGroup: @staticmethod def get_freq_group(code: int) -> int: ... - -class Resolution(Enum): - RESO_NS = cast(int, ...) - RESO_US = cast(int, ...) - RESO_MS = cast(int, ...) - RESO_SEC = cast(int, ...) - RESO_MIN = cast(int, ...) - RESO_HR = cast(int, ...) - RESO_DAY = cast(int, ...) - RESO_MTH = cast(int, ...) - RESO_QTR = cast(int, ...) - RESO_YR = cast(int, ...) - - def __lt__(self, other) -> bool: ... - def __ge__(self, other) -> bool: ... - @property - def freq_group(self) -> int: ... - @property - def attrname(self) -> str: ... - @classmethod - def from_attrname(cls, attrname: str) -> Resolution: ... - @classmethod - def get_reso_from_freq(cls, freq: str) -> Resolution: ... diff --git a/pandas-stubs/_libs/tslibs/tzconversion.pyi b/pandas-stubs/_libs/tslibs/tzconversion.pyi deleted file mode 100644 index ce0aeaa06..000000000 --- a/pandas-stubs/_libs/tslibs/tzconversion.pyi +++ /dev/null @@ -1 +0,0 @@ -def tz_convert_from_utc_single(val: int, tz: str) -> int: ... diff --git a/pandas-stubs/_libs/tslibs/vectorized.pyi b/pandas-stubs/_libs/tslibs/vectorized.pyi deleted file mode 100644 index bf640a0fc..000000000 --- a/pandas-stubs/_libs/tslibs/vectorized.pyi +++ /dev/null @@ -1,17 +0,0 @@ -from collections.abc import Sequence - -import numpy as np - -from .dtypes import Resolution - -def normalize_i8_timestamps( - stamps: Sequence[int], tz: str | None = ... -) -> list[int]: ... -def is_date_array_normalized(stamps: Sequence[int], tz: str | None = ...) -> bool: ... -def dt64arr_to_periodarr( - stamps: Sequence[int], freq: int, tz: str | None = ... -) -> list[int]: ... -def ints_to_pydatetime( - arr: Sequence[int], tz: str = ..., freq: str = ..., fold: bool = ..., box: str = ... -) -> np.ndarray: ... -def get_resolution(stamps: Sequence[int], tz: str | None = ...) -> Resolution: ... diff --git a/pandas-stubs/core/arrays/__init__.pyi b/pandas-stubs/core/arrays/__init__.pyi index a1414e577..b9fb5f749 100644 --- a/pandas-stubs/core/arrays/__init__.pyi +++ b/pandas-stubs/core/arrays/__init__.pyi @@ -9,10 +9,7 @@ from pandas.core.arrays.datetimes import DatetimeArray as DatetimeArray from pandas.core.arrays.integer import IntegerArray as IntegerArray from pandas.core.arrays.interval import IntervalArray as IntervalArray from pandas.core.arrays.numpy_ import PandasArray as PandasArray -from pandas.core.arrays.period import ( - PeriodArray as PeriodArray, - period_array as period_array, -) +from pandas.core.arrays.period import PeriodArray as PeriodArray from pandas.core.arrays.sparse import SparseArray as SparseArray from pandas.core.arrays.string_ import StringArray as StringArray from pandas.core.arrays.timedeltas import TimedeltaArray as TimedeltaArray diff --git a/pandas-stubs/core/arrays/period.pyi b/pandas-stubs/core/arrays/period.pyi index 04e0d7680..2351c3d1c 100644 --- a/pandas-stubs/core/arrays/period.pyi +++ b/pandas-stubs/core/arrays/period.pyi @@ -1,5 +1,3 @@ -from collections.abc import Sequence - import numpy as np from pandas import PeriodDtype from pandas.core.arrays.datetimelike import ( @@ -10,8 +8,6 @@ from pandas.core.arrays.datetimelike import ( from pandas._libs.tslibs import Timestamp from pandas._libs.tslibs.period import Period -from pandas.tseries.offsets import Tick - class PeriodArray(DatetimeLikeArrayMixin, DatelikeOps): __array_priority__: int = ... def __init__(self, values, freq=..., dtype=..., copy: bool = ...) -> None: ... @@ -44,12 +40,3 @@ class PeriodArray(DatetimeLikeArrayMixin, DatelikeOps): def to_timestamp(self, freq: str | None = ..., how: str = ...) -> Timestamp: ... def asfreq(self, freq: str | None = ..., how: str = ...) -> Period: ... def astype(self, dtype, copy: bool = ...): ... - -def raise_on_incompatible(left, right): ... -def period_array( - data: Sequence[Period | None], - freq: str | Tick | None = ..., - copy: bool = ..., -) -> PeriodArray: ... -def validate_dtype_freq(dtype, freq): ... -def dt64arr_to_periodarr(data, freq, tz=...): ...