Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kiorky committed Jul 26, 2024
1 parent 62cd50e commit f9f7cb9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ Changelog
3.0.3 (unreleased)
------------------

- Nothing changed yet.

- fix lint [kiorky]

3.0.2 (2024-07-26)
------------------
Expand Down
10 changes: 8 additions & 2 deletions src/croniter/croniter.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,16 @@ def _alphaconv(cls, index, key, expressions):
def get_next(self, ret_type=None, start_time=None, update_current=True):
if start_time and self._expand_from_start_time:
raise ValueError("start_time is not supported when using expand_from_start_time = True.")
return self._get_next(ret_type or self._ret_type, start_time=start_time, is_prev=False, update_current=update_current)
return self._get_next(ret_type or self._ret_type,
start_time=start_time,
is_prev=False,
update_current=update_current)

def get_prev(self, ret_type=None, start_time=None, update_current=True):
return self._get_next(ret_type or self._ret_type, start_time=start_time, is_prev=True, update_current=update_current)
return self._get_next(ret_type or self._ret_type,
start_time=start_time,
is_prev=True,
update_current=update_current)

def get_current(self, ret_type=None):
ret_type = ret_type or self._ret_type
Expand Down

0 comments on commit f9f7cb9

Please sign in to comment.