add (overwrite with) mypy stubs, if available

This commit is contained in:
Matthias Kramm
2015-09-30 07:36:12 -07:00
parent 69e10b3aed
commit 337abed05a
432 changed files with 22360 additions and 776 deletions

27
stdlib/2.7/shlex.pyi Normal file
View File

@@ -0,0 +1,27 @@
from typing import Optional, List, Any, IO
def split(s: Optional[str], comments: bool = False, posix: bool = True) -> List[str]: ...
class shlex:
def __init__(self, instream: IO[Any] = None, infile: IO[Any] = None, posix: bool = True) -> None: ...
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) -> None: ...
def pop_source(self) -> IO[Any]: ...
def error_leader(file: str = None, line: int = None) -> str: ...
commenters = ... # type: str
wordchars = ... # type: str
whitespace = ... # type: str
escape = ... # type: str
quotes = ... # type: str
escapedquotes = ... # type: str
whitespace_split = ... # type: bool
infile = ... # type: IO[Any]
source = ... # type: Optional[str]
debug = ... # type: int
lineno = ... # type: int
token = ... # type: Any
eof = ... # type: Optional[str]