fix syntax errors

This commit is contained in:
Matthias Kramm
2015-09-15 15:47:41 -07:00
parent 6019cad152
commit 6be8de84e9
4 changed files with 9 additions and 9 deletions

View File

@@ -3,7 +3,7 @@
from typing import Optional, Any
class Random(object):
def __init__(self, seed: x: object = None) -> None: ...
def __init__(self, seed: x, object = None) -> None: ...
def seed(self, x: object = None) -> None: ...
def getstate(self) -> tuple: ...
def setstate(self, state: tuple) -> None: ...

View File

@@ -26,7 +26,7 @@ class StringIO(IO[str]):
def writable(self) -> bool: ...
def writelines(self, lines: Iterable[str]) -> None: ...
def next(self) -> str: ...
def __iter__(self) -> StringI: ...
def __iter__(self) -> "InputType": ...
def __enter__(self) -> Any: ...
def __exit__(self, exc_type: type, exc_val: Any, exc_tb: Any) -> Any: ...
# only StringO:

View File

@@ -23,7 +23,7 @@ class _localdummy(object):
def start_new(function: Callable[..., Any], args: Any, kwargs: Any = None) -> int: ...
def start_new_thread(function: Callable[..., Any], args: Any, kwargs: Any = None) -> int: ...
def interrupt_main() -> None: ...
def exit() -> None: ...
def exit() -> None:
raise SystemExit()
def exit_thread() -> Any:
raise SystemExit()

View File

@@ -25,12 +25,12 @@ def decompress(data: str, wbits: int = ..., bufsize: int = ...) -> str: ...
class compressobj:
def __init__(level: int = ..., method: int = ..., wbits: int = ..., memlevel: int = ...,
strategy: int = ...): ...
def compress(self, data: str) -> str
def copy(self) -> _Compress
def flush(self) -> NoneType
def compress(self, data: str) -> str: ...
def copy(self) -> _Compress: ...
def flush(self) -> NoneType: ...
class decompressobj:
def __init__(wbits: int = ...): ...
def copy(self) -> _Compress
def decompress(self, data: str) -> str
def flush(self) -> NoneType
def copy(self) -> _Compress: ...
def decompress(self, data: str) -> str: ...
def flush(self) -> NoneType: ...