massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / shlex.pyi
1 # Stubs for shlex\r
2 \r
3 # Based on http://docs.python.org/3.2/library/shlex.html\r
4 \r
5 from typing import List, Tuple, Any, TextIO, Union, Optional, Iterable, TypeVar\r
6 import sys\r
7 \r
8 def split(s: str, comments: bool = ...,\r
9           posix: bool = ...) -> List[str]: ...\r
10 \r
11 # Added in 3.3, use (undocumented) pipes.quote in previous versions.\r
12 def quote(s: str) -> str: ...\r
13 \r
14 _SLT = TypeVar('_SLT', bound=shlex)\r
15 \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
27     debug = 0\r
28     lineno = 0\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
33 \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
37     else:\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