Skip to content

Commit dc89734

Browse files
Apply ruff/pyupgrade rule UP007
Use `X | Y` for type annotations
1 parent 164b367 commit dc89734

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tabulate/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import re
1515
import sys
1616
import textwrap
17-
from typing import Callable, Union
17+
from typing import Callable
1818
import warnings
1919

2020
try:
@@ -2529,7 +2529,7 @@ def _build_row(
25292529
padded_cells: list[list],
25302530
colwidths: list[int],
25312531
colaligns: list[str],
2532-
rowfmt: Union[DataRow, Callable],
2532+
rowfmt: DataRow | Callable,
25332533
) -> str:
25342534
"Return a string which represents a row of data cells."
25352535
if not rowfmt:

0 commit comments

Comments
 (0)