forked from python/typeshed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshlex.pyi
31 lines (27 loc) · 1000 Bytes
/
shlex.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from typing import Any, IO, List, Optional, TypeVar
def split(s: Optional[str], comments: bool = ..., posix: bool = ...) -> List[str]: ...
_SLT = TypeVar('_SLT', bound=shlex)
class shlex:
def __init__(self, instream: IO[Any] = ..., infile: IO[Any] = ..., posix: bool = ...) -> None: ...
def __iter__(self: _SLT) -> _SLT: ...
def next(self) -> str: ...
def get_token(self) -> Optional[str]: ...
def push_token(self, _str: str) -> None: ...
def read_token(self) -> str: ...
def sourcehook(self, filename: str) -> None: ...
def push_source(self, stream: IO[Any], filename: str = ...) -> None: ...
def pop_source(self) -> IO[Any]: ...
def error_leader(self, file: str = ..., line: int = ...) -> str: ...
commenters: str
wordchars: str
whitespace: str
escape: str
quotes: str
escapedquotes: str
whitespace_split: bool
infile: IO[Any]
source: Optional[str]
debug: int
lineno: int
token: Any
eof: Optional[str]