3 # Based on http://docs.python.org/3.2/library/shlex.html
\r
5 from typing import List, Tuple, Any, TextIO, Union, Optional, Iterable, TypeVar
\r
8 def split(s: str, comments: bool = ...,
\r
9 posix: bool = ...) -> List[str]: ...
\r
11 # Added in 3.3, use (undocumented) pipes.quote in previous versions.
\r
12 def quote(s: str) -> str: ...
\r
14 _SLT = TypeVar('_SLT', bound=shlex)
\r
16 class shlex(Iterable[str]):
\r
17 commenters = ... # type: str
\r
18 wordchars = ... # type: str
\r
19 whitespace = ... # type: str
\r
20 escape = ... # type: str
\r
21 quotes = ... # type: str
\r
22 escapedquotes = ... # type: str
\r
23 whitespace_split = ... # type: bool
\r
24 infile = ... # type: str
\r
25 instream = ... # type: TextIO
\r
26 source = ... # type: str
\r
29 token = ... # type: str
\r
30 eof = ... # type: str
\r
31 if sys.version_info >= (3, 6):
\r
32 punctuation_chars = ... # type: str
\r
34 if sys.version_info >= (3, 6):
\r
35 def __init__(self, instream: Union[str, TextIO] = ..., infile: Optional[str] = ...,
\r
36 posix: bool = ..., punctuation_chars: Union[bool, str] = ...) -> None: ...
\r
38 def __init__(self, instream: Union[str, TextIO] = ..., infile: Optional[str] = ...,
\r
39 posix: bool = ...) -> None: ...
\r
40 def get_token(self) -> str: ...
\r
41 def push_token(self, tok: str) -> None: ...
\r
42 def read_token(self) -> str: ...
\r
43 def sourcehook(self, filename: str) -> Tuple[str, TextIO]: ...
\r
44 # TODO argument types
\r
45 def push_source(self, newstream: Any, newfile: Any = ...) -> None: ...
\r
46 def pop_source(self) -> None: ...
\r
47 def error_leader(self, infile: str = ...,
\r
48 lineno: int = ...) -> None: ...
\r
49 def __iter__(self: _SLT) -> _SLT: ...
\r
50 def __next__(self) -> str: ...
\r