2 from typing import Any, Iterable, TextIO, TypeVar
4 def split(s: str, comments: bool = ..., posix: bool = ...) -> list[str]: ...
6 if sys.version_info >= (3, 8):
7 def join(split_command: Iterable[str]) -> str: ...
9 def quote(s: str) -> str: ...
11 _SLT = TypeVar("_SLT", bound=shlex)
13 class shlex(Iterable[str]):
20 whitespace_split: bool
28 punctuation_chars: str
31 instream: str | TextIO | None = ...,
32 infile: str | None = ...,
34 punctuation_chars: bool | str = ...,
36 def get_token(self) -> str: ...
37 def push_token(self, tok: str) -> None: ...
38 def read_token(self) -> str: ...
39 def sourcehook(self, newfile: str) -> tuple[str, TextIO]: ...
41 def push_source(self, newstream: Any, newfile: Any = ...) -> None: ...
42 def pop_source(self) -> None: ...
43 def error_leader(self, infile: str | None = ..., lineno: int | None = ...) -> None: ...
44 def __iter__(self: _SLT) -> _SLT: ...
45 def __next__(self) -> str: ...