2 from typing import Any, Dict, Iterator, List, Optional, Text, Tuple, Type, TypeVar, Union
\r
4 _RetType = Union[Type[float], Type[datetime.datetime]]
\r
5 _SelfT = TypeVar('_SelfT', bound=croniter)
\r
7 class CroniterError(ValueError): ...
\r
8 class CroniterBadCronError(CroniterError): ...
\r
9 class CroniterBadDateError(CroniterError): ...
\r
10 class CroniterNotAlphaError(CroniterError): ...
\r
12 class croniter(Iterator[Any]):
\r
14 RANGES: Tuple[Tuple[int, int], ...]
\r
15 DAYS: Tuple[int, ...]
\r
16 ALPHACONV: Tuple[Dict[str, Any], ...]
\r
17 LOWMAP: Tuple[Dict[int, Any], ...]
\r
19 tzinfo: Optional[datetime.tzinfo]
\r
21 expanded: List[List[str]]
\r
23 dst_start_time: float
\r
24 nth_weekday_of_month: Dict[str, Any]
\r
25 def __init__(self, expr_format: Text, start_time: Optional[Union[float, datetime.datetime]] = ..., ret_type: Optional[_RetType] = ...) -> None: ...
\r
26 # Most return value depend on ret_type, which can be passed in both as a method argument and as
\r
27 # a constructor argument.
\r
28 def get_next(self, ret_type: Optional[_RetType] = ...) -> Any: ...
\r
29 def get_prev(self, ret_type: Optional[_RetType] = ...) -> Any: ...
\r
30 def get_current(self, ret_type: Optional[_RetType] = ...) -> Any: ...
\r
31 def __iter__(self: _SelfT) -> _SelfT: ...
\r
32 def __next__(self, ret_type: Optional[_RetType] = ...) -> Any: ...
\r
33 def next(self, ret_type: Optional[_RetType] = ...) -> Any: ...
\r
34 def all_next(self, ret_type: Optional[_RetType] = ...) -> Iterator[Any]: ...
\r
35 def all_prev(self, ret_type: Optional[_RetType] = ...) -> Iterator[Any]: ...
\r
36 def iter(self, ret_type: Optional[_RetType] = ...) -> Iterator[Any]: ...
\r
37 def is_leap(self, year: int) -> bool: ...
\r
39 def expand(cls, expr_format: Text) -> Tuple[List[List[str]], Dict[str, Any]]: ...
\r
41 def is_valid(cls, expression: Text) -> bool: ...
\r