mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-08 20:43:25 +08:00
Re-organize directory structure (#4971)
See discussion in #2491 Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
This commit is contained in:
2
stubs/tabulate/METADATA.toml
Normal file
2
stubs/tabulate/METADATA.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
version = "0.1"
|
||||
python2 = true
|
||||
43
stubs/tabulate/tabulate.pyi
Normal file
43
stubs/tabulate/tabulate.pyi
Normal file
@@ -0,0 +1,43 @@
|
||||
from typing import Any, Callable, Container, Dict, Iterable, List, Mapping, NamedTuple, Optional, Sequence, Union
|
||||
|
||||
PRESERVE_WHITESPACE: bool
|
||||
WIDE_CHARS_MODE: bool
|
||||
tabulate_formats: List[str]
|
||||
|
||||
class Line(NamedTuple):
|
||||
begin: str
|
||||
hline: str
|
||||
sep: str
|
||||
end: str
|
||||
|
||||
class DataRow(NamedTuple):
|
||||
begin: str
|
||||
sep: str
|
||||
end: str
|
||||
|
||||
_TableFormatLine = Union[None, Line, Callable[[List[int], List[str]], str]]
|
||||
_TableFormatRow = Union[None, DataRow, Callable[[List[Any], List[int], List[str]], str]]
|
||||
|
||||
class TableFormat(NamedTuple):
|
||||
lineabove: _TableFormatLine
|
||||
linebelowheader: _TableFormatLine
|
||||
linebetweenrows: _TableFormatLine
|
||||
linebelow: _TableFormatLine
|
||||
headerrow: _TableFormatRow
|
||||
datarow: _TableFormatRow
|
||||
padding: int
|
||||
with_header_hide: Optional[Container[str]]
|
||||
|
||||
def simple_separated_format(separator: str) -> TableFormat: ...
|
||||
def tabulate(
|
||||
tabular_data: Union[Mapping[str, Iterable[Any]], Iterable[Iterable[Any]]],
|
||||
headers: Union[str, Dict[str, str], Sequence[str]] = ...,
|
||||
tablefmt: Union[str, TableFormat] = ...,
|
||||
floatfmt: Union[str, Iterable[str]] = ...,
|
||||
numalign: Optional[str] = ...,
|
||||
stralign: Optional[str] = ...,
|
||||
missingval: Union[str, Iterable[str]] = ...,
|
||||
showindex: Union[str, bool, Iterable[Any]] = ...,
|
||||
disable_numparse: Union[bool, Iterable[int]] = ...,
|
||||
colalign: Optional[Iterable[Optional[str]]] = ...,
|
||||
) -> str: ...
|
||||
Reference in New Issue
Block a user