massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / textwrap.pyi
1 from typing import AnyStr, List, Dict, Pattern\r
2 \r
3 class TextWrapper(object):\r
4     width: int = ...\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
13 \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
20     uspace: int = ...\r
21     x: int = ...\r
22 \r
23     def __init__(\r
24             self,\r
25             width: 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
34         ...\r
35 \r
36     def wrap(self, text: AnyStr) -> List[AnyStr]: ...\r
37     def fill(self, text: AnyStr) -> AnyStr: ...\r
38 \r
39 def wrap(\r
40         text: AnyStr,\r
41         width: int = ...,\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
50     ...\r
51 \r
52 def fill(\r
53         text: AnyStr,\r
54         width: int =...,\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
63     ...\r
64 \r
65 def dedent(text: AnyStr) -> AnyStr: ...\r