Skip to content

Commit 06f69de

Browse files
committed
docs(index): fix hl_lines
1 parent 09c6183 commit 06f69de

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pip install jobify
5454

5555
Here is a simple example showing how to define a task and schedule it.
5656

57-
```python linenums="1" hl_lines="27 29 31-34"
57+
```python linenums="1" hl_lines="27 31 34 37-40"
5858
import asyncio
5959
from datetime import datetime, timedelta
6060
from zoneinfo import ZoneInfo

src/jobify/crontab.py

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,15 @@ class CronTab(CronParser):
1515
__slots__: tuple[str, ...] = ("_entry",)
1616

1717
def __init__(self, expression: str) -> None:
18-
"""Initialize a CronTab parser.
19-
20-
Args:
21-
expression: A cron expression.
22-
23-
"""
18+
"""Initialize a CronTab parser."""
2419
self._entry: Final = _CronTab(expression)
2520

2621
@override
2722
def next_run(self, *, now: datetime) -> datetime:
28-
"""Compute the next scheduled execution time.
29-
30-
Args:
31-
now: Current datetime.
32-
33-
Returns:
34-
The next run datetime.
35-
36-
"""
23+
"""Compute the next scheduled execution time."""
3724
return self._entry.next(now=now, return_datetime=True) # type: ignore[no-any-return] # pyright: ignore[reportAttributeAccessIssue,reportUnknownMemberType,reportUnknownVariableType]
3825

3926

4027
def create_crontab(expression: str) -> CronTab:
41-
"""Create a CronTab instance.
42-
43-
Args:
44-
expression: A cron expression.
45-
46-
Returns:
47-
A new CronTab instance.
48-
49-
"""
28+
"""Create a CronTab instance."""
5029
return CronTab(expression)

0 commit comments

Comments
 (0)