Use PEP 604 syntax wherever possible (#7493)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-03-16 16:01:33 +01:00
1 parent 15e21a8dc1
commit 3ab250eec8
174 files changed
+472 -490

No files matched your search

+3 -3
View File
@@ -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