Drop support for Python 3.5 (#4675)

Python 3.5 EOL was on 2020-09-30.
This commit is contained in:
Sebastian Rittau
2020-11-02 16:18:20 +01:00
committed by GitHub
parent 57b86e0e71
commit d2a7889fe0
64 changed files with 546 additions and 1174 deletions

View File

@@ -25,19 +25,14 @@ class shlex(Iterable[str]):
lineno: int
token: str
eof: str
if sys.version_info >= (3, 6):
punctuation_chars: str
if sys.version_info >= (3, 6):
def __init__(
self,
instream: Union[str, TextIO] = ...,
infile: Optional[str] = ...,
posix: bool = ...,
punctuation_chars: Union[bool, str] = ...,
) -> None: ...
else:
def __init__(self, instream: Union[str, TextIO] = ..., infile: Optional[str] = ..., posix: bool = ...) -> None: ...
punctuation_chars: str
def __init__(
self,
instream: Union[str, TextIO] = ...,
infile: Optional[str] = ...,
posix: bool = ...,
punctuation_chars: Union[bool, str] = ...,
) -> None: ...
def get_token(self) -> str: ...
def push_token(self, tok: str) -> None: ...
def read_token(self) -> str: ...