mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Container, Dict, Iterable, List, Mapping, NamedTuple, Optional, Sequence, Union
|
||||
from typing import Any, Callable, Container, Dict, Iterable, List, Mapping, NamedTuple, Sequence, Union
|
||||
|
||||
LATEX_ESCAPE_RULES: Dict[str, str]
|
||||
MIN_PADDING: int
|
||||
@@ -29,18 +29,18 @@ class TableFormat(NamedTuple):
|
||||
headerrow: _TableFormatRow
|
||||
datarow: _TableFormatRow
|
||||
padding: int
|
||||
with_header_hide: Optional[Container[str]]
|
||||
with_header_hide: Container[str] | None
|
||||
|
||||
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]]] = ...,
|
||||
tabular_data: Mapping[str, Iterable[Any]] | Iterable[Iterable[Any]],
|
||||
headers: str | Dict[str, str] | Sequence[str] = ...,
|
||||
tablefmt: str | TableFormat = ...,
|
||||
floatfmt: str | Iterable[str] = ...,
|
||||
numalign: str | None = ...,
|
||||
stralign: str | None = ...,
|
||||
missingval: str | Iterable[str] = ...,
|
||||
showindex: str | bool | Iterable[Any] = ...,
|
||||
disable_numparse: bool | Iterable[int] = ...,
|
||||
colalign: Iterable[str | None] | None = ...,
|
||||
) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user