apply black and isort (#4287)

* apply black and isort

* move some type ignores
This commit is contained in:
Jelle Zijlstra
2020-06-28 13:31:00 -07:00
committed by GitHub
parent fe58699ca5
commit 5d553c9584
800 changed files with 13875 additions and 10332 deletions

View File

@@ -1,4 +1,4 @@
from typing import AnyStr, List, Dict, Pattern
from typing import AnyStr, Dict, List, Pattern
class TextWrapper(object):
width: int = ...
@@ -19,43 +19,43 @@ class TextWrapper(object):
unicode_whitespace_trans: Dict[int, int] = ...
uspace: int = ...
x: int = ...
def __init__(
self,
width: int = ...,
initial_indent: str = ...,
subsequent_indent: str = ...,
expand_tabs: bool = ...,
replace_whitespace: bool = ...,
fix_sentence_endings: bool = ...,
break_long_words: bool = ...,
drop_whitespace: bool = ...,
break_on_hyphens: bool = ...) -> None:
...
self,
width: int = ...,
initial_indent: str = ...,
subsequent_indent: str = ...,
expand_tabs: bool = ...,
replace_whitespace: bool = ...,
fix_sentence_endings: bool = ...,
break_long_words: bool = ...,
drop_whitespace: bool = ...,
break_on_hyphens: bool = ...,
) -> None: ...
def wrap(self, text: AnyStr) -> List[AnyStr]: ...
def fill(self, text: AnyStr) -> AnyStr: ...
def wrap(text: AnyStr,
width: int = ...,
initial_indent: AnyStr = ...,
subsequent_indent: AnyStr = ...,
expand_tabs: bool = ...,
replace_whitespace: bool = ...,
fix_sentence_endings: bool = ...,
break_long_words: bool = ...,
drop_whitespace: bool = ...,
break_on_hyphens: bool = ...) -> List[AnyStr]: ...
def fill(text: AnyStr,
width: int = ...,
initial_indent: AnyStr = ...,
subsequent_indent: AnyStr = ...,
expand_tabs: bool = ...,
replace_whitespace: bool = ...,
fix_sentence_endings: bool = ...,
break_long_words: bool = ...,
drop_whitespace: bool = ...,
break_on_hyphens: bool = ...) -> AnyStr: ...
def wrap(
text: AnyStr,
width: int = ...,
initial_indent: AnyStr = ...,
subsequent_indent: AnyStr = ...,
expand_tabs: bool = ...,
replace_whitespace: bool = ...,
fix_sentence_endings: bool = ...,
break_long_words: bool = ...,
drop_whitespace: bool = ...,
break_on_hyphens: bool = ...,
) -> List[AnyStr]: ...
def fill(
text: AnyStr,
width: int = ...,
initial_indent: AnyStr = ...,
subsequent_indent: AnyStr = ...,
expand_tabs: bool = ...,
replace_whitespace: bool = ...,
fix_sentence_endings: bool = ...,
break_long_words: bool = ...,
drop_whitespace: bool = ...,
break_on_hyphens: bool = ...,
) -> AnyStr: ...
def dedent(text: AnyStr) -> AnyStr: ...