add missing arguments to croniter (#5887)

Co-authored-by: Søren Bjerregaard Vrist <sbv@csis.dk>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
Akuli
2021-08-08 18:33:16 +03:00
committed by GitHub
parent b1d1551bbc
commit 11f54c3407
3 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
croniter.CroniterError
croniter.croniter.__init__
croniter.croniter.__next__
croniter.croniter.expand
croniter.croniter.get_next

View File

@@ -1,2 +1,2 @@
version = "0.1"
version = "1.0"
python2 = true

View File

@@ -23,7 +23,14 @@ class croniter(Iterator[Any]):
dst_start_time: float
nth_weekday_of_month: Dict[str, Any]
def __init__(
self, expr_format: Text, start_time: float | datetime.datetime | None = ..., ret_type: _RetType | None = ...
self,
expr_format: Text,
start_time: float | datetime.datetime | None = ...,
ret_type: _RetType | None = ...,
day_or: bool = ...,
max_years_between_matches: int | None = ...,
is_prev: bool = ...,
hash_id: str | bytes | None = ..., # unicode not accepted on python 2
) -> None: ...
# Most return value depend on ret_type, which can be passed in both as a method argument and as
# a constructor argument.