Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions stubs/python-crontab/crontab.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ class Process:
def __eq__(self, other: object) -> bool: ...

class CronTab:
lines: list[str | CronItem] | None
crons: list[CronItem] | None
lines: list[str | CronItem]
crons: list[CronItem]
filen: str | None
cron_command: str
env: OrderedVariableList[str, str] | None
env: OrderedVariableList[str, str]
root: bool
intab: str | None
tabfile: str | None
Expand Down Expand Up @@ -121,7 +121,12 @@ class CronTab:
) -> int: ...
def remove(self, *items: CronItem | Iterable[CronItem]) -> int: ...
def __iter__(self) -> Iterator[CronItem]: ...

@overload
def __getitem__(self, i: SupportsIndex) -> CronItem: ...
@overload
def __getitem__(self, i: slice) -> list[CronItem]: ...

def __len__(self) -> int: ...

class CronItem:
Expand Down
Loading