mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 02:57:14 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Container, Iterable, Mapping, NamedTuple, Sequence, Union
|
||||
from typing import Any, Callable, Container, Iterable, Mapping, NamedTuple, Sequence
|
||||
|
||||
LATEX_ESCAPE_RULES: dict[str, str]
|
||||
MIN_PADDING: int
|
||||
@@ -18,8 +18,8 @@ class DataRow(NamedTuple):
|
||||
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]]
|
||||
_TableFormatLine = None | Line | Callable[[list[int], list[str]], str]
|
||||
_TableFormatRow = None | DataRow | Callable[[list[Any], list[int], list[str]], str]
|
||||
|
||||
class TableFormat(NamedTuple):
|
||||
lineabove: _TableFormatLine
|
||||
|
||||
Reference in New Issue
Block a user