crontab: upstream did some py2 cleanup (#9406)

Fixes #9405
This commit is contained in:
Shantanu
2022-12-23 21:41:47 -06:00
committed by GitHub
parent 8671fc5c0f
commit 8c0964714c
2 changed files with 1 additions and 8 deletions

View File

@@ -2,9 +2,7 @@ from _typeshed import Self, StrOrBytesPath
from codecs import StreamReaderWriter
from collections.abc import Generator, Iterator
from types import TracebackType
from typing_extensions import Literal
PY3: Literal[True]
MATCHER: str
class LogReader:

View File

@@ -6,7 +6,7 @@ from collections.abc import Callable, Generator, Iterator
from logging import Logger
from types import TracebackType
from typing import Any
from typing_extensions import Literal, SupportsIndex
from typing_extensions import SupportsIndex
from cronlog import CronLog
@@ -19,7 +19,6 @@ MONTH_ENUM: list[str | None]
SPECIALS: dict[str, str]
SPECIAL_IGNORE: list[str]
S_INFO: list[dict[str, Any]]
PY3: Literal[True]
WINOS: bool
POSIX: bool
SYSTEMV: bool
@@ -84,7 +83,6 @@ class CronTab:
def remove(self, *items: CronItem | list[CronItem] | tuple[CronItem, ...] | Generator[CronItem, Any, Any]) -> int: ...
def __iter__(self) -> Iterator[CronItem]: ...
def __getitem__(self, i: SupportsIndex) -> CronItem: ...
def __unicode__(self) -> str: ...
def __len__(self) -> int: ...
class CronItem:
@@ -150,7 +148,6 @@ class CronItem:
def __getitem__(self, key: SupportsIndex) -> CronSlice: ...
def __lt__(self, value) -> bool: ...
def __gt__(self, value) -> bool: ...
def __unicode__(self) -> str: ...
class Every:
slices: Incomplete
@@ -195,7 +192,6 @@ class CronSlice:
def parse(self, value) -> None: ...
def render(self, resolve: bool = ..., specials: bool = ...): ...
def __eq__(self, arg: object) -> bool: ...
def __unicode__(self) -> str: ...
def every(self, n_value, also: bool = ...): ...
def on(self, *n_value, **opts): ...
def during(self, vfrom, vto, also: bool = ...): ...
@@ -232,7 +228,6 @@ class CronRange:
def __lt__(self, value): ...
def __gt__(self, value): ...
def __int__(self) -> int: ...
def __unicode__(self) -> str: ...
class OrderedVariableList(OrderedDict[Incomplete, Incomplete]):
job: Incomplete