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

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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 = ' [...]'
):
...