mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-24 18:48:46 +08:00
Add defaults for third-party stubs A-D (#9952)
This commit is contained in:
@@ -56,43 +56,43 @@ class croniter(Iterator[Any]):
|
||||
def __init__(
|
||||
self,
|
||||
expr_format: str,
|
||||
start_time: float | datetime.datetime | None = ...,
|
||||
start_time: float | datetime.datetime | None = None,
|
||||
ret_type: _RetType | None = ...,
|
||||
day_or: bool = ...,
|
||||
max_years_between_matches: int | None = ...,
|
||||
is_prev: bool = ...,
|
||||
hash_id: str | bytes | None = ...,
|
||||
day_or: bool = True,
|
||||
max_years_between_matches: int | None = None,
|
||||
is_prev: bool = False,
|
||||
hash_id: str | bytes | None = None,
|
||||
) -> None: ...
|
||||
# Most return value depend on ret_type, which can be passed in both as a method argument and as
|
||||
# a constructor argument.
|
||||
def get_next(self, ret_type: _RetType | None = ..., start_time: float | datetime.datetime | None = ...) -> Any: ...
|
||||
def get_prev(self, ret_type: _RetType | None = ...) -> Any: ...
|
||||
def get_current(self, ret_type: _RetType | None = ...) -> Any: ...
|
||||
def set_current(self, start_time: float | datetime.datetime | None, force: bool = ...) -> float: ...
|
||||
def get_next(self, ret_type: _RetType | None = None, start_time: float | datetime.datetime | None = None) -> Any: ...
|
||||
def get_prev(self, ret_type: _RetType | None = None) -> Any: ...
|
||||
def get_current(self, ret_type: _RetType | None = None) -> Any: ...
|
||||
def set_current(self, start_time: float | datetime.datetime | None, force: bool = True) -> float: ...
|
||||
def __iter__(self) -> Self: ...
|
||||
def next(
|
||||
self, ret_type: _RetType | None = ..., start_time: float | datetime.datetime | None = ..., is_prev: bool | None = ...
|
||||
self, ret_type: _RetType | None = None, start_time: float | datetime.datetime | None = None, is_prev: bool | None = None
|
||||
) -> Any: ...
|
||||
__next__ = next
|
||||
def all_next(self, ret_type: _RetType | None = ...) -> Iterator[Any]: ...
|
||||
def all_prev(self, ret_type: _RetType | None = ...) -> Iterator[Any]: ...
|
||||
def all_next(self, ret_type: _RetType | None = None) -> Iterator[Any]: ...
|
||||
def all_prev(self, ret_type: _RetType | None = None) -> Iterator[Any]: ...
|
||||
def iter(self, ret_type: _RetType | None = ...) -> Iterator[Any]: ...
|
||||
def is_leap(self, year: int) -> bool: ...
|
||||
@classmethod
|
||||
def expand(cls, expr_format: str, hash_id: str | bytes | None = ...) -> tuple[list[list[str]], dict[str, Any]]: ...
|
||||
def expand(cls, expr_format: str, hash_id: str | bytes | None = None) -> tuple[list[list[str]], dict[str, Any]]: ...
|
||||
@classmethod
|
||||
def is_valid(cls, expression: str, hash_id: str | bytes | None = ...) -> bool: ...
|
||||
def is_valid(cls, expression: str, hash_id: str | bytes | None = None) -> bool: ...
|
||||
@classmethod
|
||||
def match(cls, cron_expression: str, testdate: float | datetime.datetime | None, day_or: bool = ...) -> bool: ...
|
||||
def match(cls, cron_expression: str, testdate: float | datetime.datetime | None, day_or: bool = True) -> bool: ...
|
||||
|
||||
def croniter_range(
|
||||
start: float | datetime.datetime,
|
||||
stop: float | datetime.datetime,
|
||||
expr_format: str,
|
||||
ret_type: _RetType | None = ...,
|
||||
day_or: bool = ...,
|
||||
exclude_ends: bool = ...,
|
||||
_croniter: type[croniter] | None = ...,
|
||||
ret_type: _RetType | None = None,
|
||||
day_or: bool = True,
|
||||
exclude_ends: bool = False,
|
||||
_croniter: type[croniter] | None = None,
|
||||
) -> Iterator[Any]: ...
|
||||
|
||||
class HashExpander:
|
||||
|
||||
Reference in New Issue
Block a user