@@ -7,7 +7,7 @@ from collections.abc import Callable, Generator, Iterable, Iterator
7
7
from datetime import datetime
8
8
from logging import Logger
9
9
from types import TracebackType
10
- from typing import Any , Literal , Protocol , SupportsIndex , TypeVar , overload , type_check_only
10
+ from typing import Any , Final , Literal , Protocol , SupportsIndex , TypeVar , overload , type_check_only
11
11
from typing_extensions import Self , TypeAlias
12
12
13
13
from croniter .croniter import croniter
@@ -28,22 +28,24 @@ class _Options(Protocol):
28
28
locale_code : str | None
29
29
def __init__ (self ) -> None : ...
30
30
31
- __pkgname__ : str
32
- ITEMREX : re .Pattern [str ]
33
- SPECREX : re .Pattern [str ]
34
- DEVNULL : str
35
- WEEK_ENUM : list [str ]
36
- MONTH_ENUM : list [str | None ]
37
- SPECIALS : dict [str , str ]
38
- SPECIAL_IGNORE : list [str ]
39
- S_INFO : list [dict [str , str | int | list [str ] | list [str | None ]]]
40
- WINOS : bool
41
- POSIX : bool
42
- SYSTEMV : bool
43
- ZERO_PAD : bool
31
+ __pkgname__ : Final [str ]
32
+ __version__ : Final [str ]
33
+ ITEMREX : Final [re .Pattern [str ]]
34
+ SPECREX : Final [re .Pattern [str ]]
35
+ DEVNULL : Final [str ]
36
+ WEEK_ENUM : Final [list [str ]]
37
+ MONTH_ENUM : Final [list [str | None ]]
38
+ SPECIALS_CONVERSION : Final [bool ]
39
+ SPECIALS : Final [dict [str , str ]]
40
+ SPECIAL_IGNORE : Final [list [str ]]
41
+ S_INFO : Final [list [dict [str , str | int | list [str ] | list [str | None ]]]]
42
+ WINOS : Final [bool ]
43
+ POSIX : Final [bool ]
44
+ SYSTEMV : Final [bool ]
45
+ ZERO_PAD : Final [bool ]
44
46
LOG : Logger
45
- CRON_COMMAND : str
46
- SHELL : str
47
+ CRON_COMMAND : Final [ str ]
48
+ SHELL : Final [ str ]
47
49
current_user : Callable [[], str | None ]
48
50
49
51
class Process :
@@ -95,7 +97,7 @@ class CronTab:
95
97
# work for `CronItem` subclasses, which might define other kwargs.
96
98
def run_pending (self , * , now : datetime | None = ..., ** kwargs : Any ) -> Iterator [str ]: ...
97
99
def run_scheduler (self , timeout : int = - 1 , cadence : int = 60 , warp : bool = False ) -> Iterator [str ]: ...
98
- def render (self , errors : bool = ..., specials : bool | None = ... ) -> str : ...
100
+ def render (self , errors : bool = ...) -> str : ...
99
101
def new (
100
102
self ,
101
103
command : str = ...,
@@ -147,7 +149,7 @@ class CronItem:
147
149
def enable (self , enabled : bool = ...) -> bool : ...
148
150
def is_enabled (self ) -> bool : ...
149
151
def is_valid (self ) -> bool : ...
150
- def render (self , specials : bool = ... ) -> str : ...
152
+ def render (self ) -> str : ...
151
153
def every_reboot (self ) -> None : ...
152
154
def every (self , unit : int = ...) -> Every : ...
153
155
def setall (self , * args : Any ) -> None : ...
@@ -224,7 +226,7 @@ class CronSlices(list[CronSlice]):
224
226
def is_valid (cls , * args : Any ) -> bool : ...
225
227
def setall (self , * slices : str ) -> None : ...
226
228
def clean_render (self ) -> str : ...
227
- def render (self , specials : bool = ... ) -> str : ...
229
+ def render (self ) -> str : ...
228
230
def clear (self ) -> None : ...
229
231
def frequency (self , year : int | None = ...) -> int : ...
230
232
def frequency_per_year (self , year : int | None = ...) -> int : ...
0 commit comments