Fix parse errors

This commit is contained in:
Matthias Kramm
2015-11-09 13:37:08 -08:00
parent 20f8635d73
commit 375bf063b1
6 changed files with 14 additions and 15 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ _HANDLER = Union[Callable[[int, FrameType], None], int, None]
def alarm(time: int) -> int: ...
def getsignal(signalnum: int) -> _HANDLER: ...
def pause() -> None: ...
def setitimer(which: int, seconds: float, interval: float = None) -> Tuple[float, float]: ...
def setitimer(which: int, seconds: float, interval: float = ...) -> Tuple[float, float]: ...
def getitimer(which: int) -> Tuple[float, float]: ...
def set_wakeup_fd(fd: int) -> int: ...
def siginterrupt(signalnum: int, flag: bool) -> None:
+5 -5
View File
@@ -6,8 +6,8 @@ def _count() -> int: ...
class error(Exception): ...
class LockType:
def acquire(self, waitflag: int = None) -> bool: ...
def acquire_lock(self, waitflag: int = None) -> bool: ...
def acquire(self, waitflag: int = ...) -> bool: ...
def acquire_lock(self, waitflag: int = ...) -> bool: ...
def release(self) -> None: ...
def release_lock(self) -> None: ...
def locked(self) -> bool: ...
@@ -21,8 +21,8 @@ class _local(object):
class _localdummy(object):
pass
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 start_new(function: Callable[..., Any], args: Any, kwargs: Any = ...) -> int: ...
def start_new_thread(function: Callable[..., Any], args: Any, kwargs: Any = ...) -> int: ...
def interrupt_main() -> None: ...
def exit() -> None:
raise SystemExit()
@@ -30,4 +30,4 @@ def exit_thread() -> Any:
raise SystemExit()
def allocate_lock() -> LockType: ...
def get_ident() -> int: ...
def stack_size(size: int = None) -> int: ...
def stack_size(size: int = ...) -> int: ...