Skip to content

Commit 79ac2bc

Browse files
authored
[python-crontab] fill in incompletes (#15026)
1 parent 9309968 commit 79ac2bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stubs/python-crontab/crontab.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import re
22
import subprocess
3-
from _typeshed import Incomplete, StrPath
3+
from _typeshed import StrPath
44
from builtins import range as _range
55
from collections import OrderedDict
66
from collections.abc import Callable, Generator, Iterable, Iterator
@@ -66,7 +66,7 @@ class CronTab:
6666
crons: list[CronItem] | None
6767
filen: str | None
6868
cron_command: str
69-
env: OrderedVariableList[Incomplete, Incomplete] | None
69+
env: OrderedVariableList[str, str] | None
7070
root: bool
7171
intab: str | None
7272
tabfile: str | None
@@ -132,7 +132,7 @@ class CronItem:
132132
comment: str
133133
command: str | None
134134
last_run: datetime | None
135-
env: OrderedVariableList[Incomplete, Incomplete]
135+
env: OrderedVariableList[str, str]
136136
pre_comment: bool
137137
marker: str | None
138138
stdin: str | None
@@ -141,7 +141,7 @@ class CronItem:
141141
def __hash__(self) -> int: ...
142142
def __eq__(self, other: object) -> bool: ...
143143
@classmethod
144-
def from_line(cls, line: str, user: str | None = ..., cron: Incomplete | None = ...) -> Self: ...
144+
def from_line(cls, line: str, user: str | None = ..., cron: CronTab | None = ...) -> Self: ...
145145
def delete(self) -> None: ...
146146
def set_command(self, cmd: str, parse_stdin: bool = ...) -> None: ...
147147
def set_comment(self, cmt: str, pre_comment: bool = ...) -> None: ...

0 commit comments

Comments
 (0)