mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 08:04:24 +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: ...
|
||||
|
||||
@@ -133,8 +133,7 @@ class _ActionsContainer:
|
||||
required: bool = None,
|
||||
help: str = None,
|
||||
metavar: str = None,
|
||||
dest: str = None,
|
||||
) -> None: ...
|
||||
dest: str = None) -> None: ...
|
||||
def add_argument_group(self, *args, **kwargs): ...
|
||||
def add_mutually_exclusive_group(self, **kwargs): ...
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ class _ActionsContainer:
|
||||
required: bool = None,
|
||||
help: str = None,
|
||||
metavar: str = None,
|
||||
dest: str = None,
|
||||
dest: str = None
|
||||
) -> None: ...
|
||||
def add_argument_group(self, *args, **kwargs): ...
|
||||
def add_mutually_exclusive_group(self, **kwargs): ...
|
||||
|
||||
@@ -59,8 +59,8 @@ class MIMEPart(Message):
|
||||
def get_body(self, preferencelist=...): ...
|
||||
def iter_attachments(self): ...
|
||||
def iter_parts(self): ...
|
||||
def get_content(self, *args, *, content_manager=None, **kw): ...
|
||||
def set_content(self, *args, *, content_manager=None, **kw): ...
|
||||
def get_content(self, *args, content_manager=None, **kw): ...
|
||||
def set_content(self, *args, content_manager=None, **kw): ...
|
||||
def make_related(self, boundary=None): ...
|
||||
def make_alternative(self, boundary=None): ...
|
||||
def make_mixed(self, boundary=None): ...
|
||||
|
||||
@@ -19,7 +19,7 @@ class TextWrapper:
|
||||
break_on_hyphens: bool = True,
|
||||
drop_whitespace: bool = True,
|
||||
max_lines: int = None,
|
||||
placeholder: str = ' [...]',
|
||||
placeholder: str = ' [...]'
|
||||
) -> None:
|
||||
self.width = width
|
||||
self.initial_indent = initial_indent
|
||||
@@ -73,7 +73,7 @@ def wrap(
|
||||
break_on_hyphens: bool = True,
|
||||
drop_whitespace: bool = True,
|
||||
max_lines: int = None,
|
||||
placeholder: str = ' [...]',
|
||||
placeholder: str = ' [...]'
|
||||
) -> List[str]:
|
||||
...
|
||||
|
||||
@@ -90,7 +90,7 @@ def fill(
|
||||
break_on_hyphens: bool = True,
|
||||
drop_whitespace: bool = True,
|
||||
max_lines: int = None,
|
||||
placeholder: str = ' [...]',
|
||||
placeholder: str = ' [...]'
|
||||
):
|
||||
...
|
||||
|
||||
@@ -107,7 +107,7 @@ def shorten(
|
||||
break_on_hyphens: bool = True,
|
||||
drop_whitespace: bool = True,
|
||||
# Omit `max_lines: int = None`, it is forced to 1 here.
|
||||
placeholder: str = ' [...]',
|
||||
placeholder: str = ' [...]'
|
||||
):
|
||||
...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user