mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-19 23:09:55 +08:00
Fix parse errors
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user