mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 05:22:23 +08:00
Fix parse errors
This commit is contained in:
@@ -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