1 from typing import AnyStr, List, Dict, Pattern
\r
3 class TextWrapper(object):
\r
5 initial_indent: str = ...
\r
6 subsequent_indent: str = ...
\r
7 expand_tabs: bool = ...
\r
8 replace_whitespace: bool = ...
\r
9 fix_sentence_endings: bool = ...
\r
10 drop_whitespace: bool = ...
\r
11 break_long_words: bool = ...
\r
12 break_on_hyphens: bool = ...
\r
14 # Attributes not present in documentation
\r
15 sentence_end_re: Pattern[str] = ...
\r
16 wordsep_re: Pattern[str] = ...
\r
17 wordsep_simple_re: Pattern[str] = ...
\r
18 whitespace_trans: str = ...
\r
19 unicode_whitespace_trans: Dict[int, int] = ...
\r
26 initial_indent: str = ...,
\r
27 subsequent_indent: str = ...,
\r
28 expand_tabs: bool = ...,
\r
29 replace_whitespace: bool = ...,
\r
30 fix_sentence_endings: bool = ...,
\r
31 break_long_words: bool = ...,
\r
32 drop_whitespace: bool = ...,
\r
33 break_on_hyphens: bool = ...) -> None:
\r
36 def wrap(self, text: AnyStr) -> List[AnyStr]: ...
\r
37 def fill(self, text: AnyStr) -> AnyStr: ...
\r
42 initial_indent: AnyStr = ...,
\r
43 subsequent_indent: AnyStr = ...,
\r
44 expand_tabs: bool = ...,
\r
45 replace_whitespace: bool = ...,
\r
46 fix_sentence_endings: bool = ...,
\r
47 break_long_words: bool = ...,
\r
48 drop_whitespace: bool = ...,
\r
49 break_on_hyphens: bool = ...) -> List[AnyStr]:
\r
55 initial_indent: AnyStr = ...,
\r
56 subsequent_indent: AnyStr = ...,
\r
57 expand_tabs: bool = ...,
\r
58 replace_whitespace: bool = ...,
\r
59 fix_sentence_endings: bool = ...,
\r
60 break_long_words: bool = ...,
\r
61 drop_whitespace: bool = ...,
\r
62 break_on_hyphens: bool = ...) -> AnyStr:
\r
65 def dedent(text: AnyStr) -> AnyStr: ...
\r