|
| 1 | +from __future__ import annotations |
| 2 | +from datetime import datetime |
| 3 | +from typing import Any, Tuple, Union |
| 4 | +from datetime import timedelta |
| 5 | + |
| 6 | +class BaseOffset: |
| 7 | + def __init__(self, n: int = ..., normalize: bool = ...) -> None: ... |
| 8 | + def __eq__(self, other) -> bool: ... |
| 9 | + def __ne__(self, other) -> bool: ... |
| 10 | + def __hash__(self) -> int: ... |
| 11 | + @property |
| 12 | + def kwds(self) -> dict: ... |
| 13 | + @property |
| 14 | + def base(self) -> BaseOffset: ... |
| 15 | + def __add__(self, other) -> BaseOffset: ... |
| 16 | + def __sub__(self, other) -> BaseOffset: ... |
| 17 | + def __call__(self, other): ... |
| 18 | + def __mul__(self, other): ... |
| 19 | + def __neg__(self) -> BaseOffset: ... |
| 20 | + def copy(self) -> BaseOffset: ... |
| 21 | + def __repr__(self) -> str: ... |
| 22 | + @property |
| 23 | + def name(self) -> str: ... |
| 24 | + @property |
| 25 | + def rule_code(self) -> str: ... |
| 26 | + def freqstr(self) -> str: ... |
| 27 | + # Next one is problematic due to circular imports |
| 28 | + #def apply_index(self, dtindex: DatetimeIndex) -> DatetimeIndex: ... |
| 29 | + def apply_index(self, dtindex): ... |
| 30 | + def _apply_array(self, dtarr) -> None: ... |
| 31 | + def rollback(self, dt: datetime) -> datetime: ... |
| 32 | + def rollforward(self, dt: datetime) -> datetime: ... |
| 33 | + def is_on_offset(self, dt: datetime) -> bool: ... |
| 34 | + def __setstate__(self, state) -> None: ... |
| 35 | + def __getstate__(self): ... |
| 36 | + @property |
| 37 | + def nanos(self) -> int: ... |
| 38 | + def onOffset(self, dt: datetime) -> bool: ... |
| 39 | + def isAnchored(self) -> bool: ... |
| 40 | + def is_anchored(self) -> bool: ... |
| 41 | + |
| 42 | +class SingleConstructorOffset(BaseOffset): |
| 43 | + @classmethod |
| 44 | + def _from_name(cls, suffix=None): ... |
| 45 | + def __reduce__(self): ... |
| 46 | + |
| 47 | +def to_offset(freq: Union[str, Tuple, timedelta, BaseOffset, None]) -> Union[BaseOffset, None]: ... |
| 48 | + |
| 49 | +class Tick(SingleConstructorOffset): |
| 50 | + def __init__(self, n: int = ..., normalize: bool = ...) -> None: ... |
| 51 | + |
| 52 | +class Day(Tick): ... |
| 53 | +class Hour(Tick): ... |
| 54 | +class Minute(Tick): ... |
| 55 | +class Second(Tick): ... |
| 56 | +class Milli(Tick): ... |
| 57 | +class Micro(Tick): ... |
| 58 | +class Nano(Tick): ... |
| 59 | +class RelativeDeltaOffset(BaseOffset): |
| 60 | + def __init__(self, n: int = ..., normalize: bool = ..., **kwds: Any) -> None: ... |
| 61 | +class BusinessMixin(SingleConstructorOffset): ... |
| 62 | +class BusinessDay(BusinessMixin): ... |
| 63 | +class BusinessHour(BusinessMixin): ... |
| 64 | +class WeekOfMonthMixin(SingleConstructorOffset): ... |
| 65 | +class YearOffset(SingleConstructorOffset): ... |
| 66 | +class BYearEnd(YearOffset): ... |
| 67 | +class BYearBegin(YearOffset): ... |
| 68 | +class YearEnd(YearOffset): ... |
| 69 | +class YearBegin(YearOffset): ... |
| 70 | +class QuarterOffset(SingleConstructorOffset): ... |
| 71 | +class BQuarterEnd(QuarterOffset): ... |
| 72 | +class BQuarterBegin(QuarterOffset): ... |
| 73 | +class QuarterEnd(QuarterOffset): ... |
| 74 | +class QuarterBegin(QuarterOffset): ... |
| 75 | +class MonthOffset(SingleConstructorOffset): ... |
| 76 | +class MonthEnd(MonthOffset): ... |
| 77 | +class MonthBegin(MonthOffset): ... |
| 78 | +class BusinessMonthEnd(MonthOffset): ... |
| 79 | +class BusinessMonthBegin(MonthOffset): ... |
| 80 | +class SemiMonthOffset(SingleConstructorOffset): ... |
| 81 | +class SemiMonthEnd(SemiMonthOffset): ... |
| 82 | +class SemiMonthBegin(SemiMonthOffset): ... |
| 83 | +class Week(SingleConstructorOffset): ... |
| 84 | +class WeekOfMonth(WeekOfMonthMixin): ... |
| 85 | +class LastWeekOfMonth(WeekOfMonthMixin): ... |
| 86 | +class FY5253Mixin(SingleConstructorOffset): ... |
| 87 | +class FY5253(FY5253Mixin): ... |
| 88 | +class FY5253Quarter(FY5253Mixin): ... |
| 89 | +class Easter(SingleConstructorOffset): ... |
| 90 | +class _CustomBusinessMonth(BusinessMixin): ... |
| 91 | +class CustomBusinessDay(BusinessDay): ... |
| 92 | +class CustomBusinessHour(BusinessHour): ... |
| 93 | +class CustomBusinessMonthEnd(_CustomBusinessMonth): ... |
| 94 | +class CustomBusinessMonthBegin(_CustomBusinessMonth): ... |
| 95 | +class DateOffset(RelativeDeltaOffset): ... |
| 96 | + |
| 97 | +BDay = BusinessDay |
| 98 | +BMonthEnd = BusinessMonthEnd |
| 99 | +BMonthBegin = BusinessMonthBegin |
| 100 | +CBMonthEnd = CustomBusinessMonthEnd |
| 101 | +CBMonthBegin = CustomBusinessMonthBegin |
| 102 | +CDay = CustomBusinessDay |
0 commit comments