1 from contextlib import contextmanager
\r
2 from typing import Generator, Iterable, List, Optional, Tuple
\r
5 FORCED_WIDTH: Optional[int]
\r
8 def measure_table(rows: Iterable[Iterable[str]]) -> Tuple[int, ...]:
\r
13 rows: Iterable[Iterable[str]], col_count: int
\r
14 ) -> Generator[Tuple[str, ...], None, None]:
\r
21 initial_indent: str = ...,
\r
22 subsequent_indent: str = ...,
\r
23 preserve_paragraphs: bool = ...
\r
28 class HelpFormatter:
\r
29 indent_increment: int
\r
30 width: Optional[int]
\r
36 indent_increment: int = ...,
\r
37 width: Optional[int] = ...,
\r
38 max_width: Optional[int] = ...,
\r
42 def write(self, string: str) -> None:
\r
45 def indent(self) -> None:
\r
48 def dedent(self) -> None:
\r
59 def write_heading(self, heading: str) -> None:
\r
62 def write_paragraph(self) -> None:
\r
65 def write_text(self, text: str) -> None:
\r
70 rows: Iterable[Iterable[str]],
\r
72 col_spacing: int = ...,
\r
77 def section(self, name) -> Generator[None, None, None]:
\r
81 def indentation(self) -> Generator[None, None, None]:
\r
84 def getvalue(self) -> str:
\r
88 def join_options(options: List[str]) -> Tuple[str, bool]:
\r