Skip to content

Commit 9ba4491

Browse files
authored
Use correct tuple type (#13465)
1 parent 3aebb87 commit 9ba4491

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

misc/actions_stubs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def apply_all(
2020
directory: str,
2121
extension: str,
2222
to_extension: str = "",
23-
exclude: tuple[str] = ("",),
23+
exclude: tuple[str, ...] = ("",),
2424
recursive: bool = True,
2525
debug: bool = False,
2626
) -> None:
@@ -100,7 +100,7 @@ def main(
100100
directory: str,
101101
extension: str,
102102
to_extension: str,
103-
exclude: tuple[str],
103+
exclude: tuple[str, ...],
104104
not_recursive: bool,
105105
) -> None:
106106
"""

mypy/reachability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def fixed_comparison(left: Targ, op: str, right: Targ) -> int:
274274
return TRUTH_VALUE_UNKNOWN
275275

276276

277-
def contains_int_or_tuple_of_ints(expr: Expression) -> None | int | tuple[int] | tuple[int, ...]:
277+
def contains_int_or_tuple_of_ints(expr: Expression) -> None | int | tuple[int, ...]:
278278
if isinstance(expr, IntExpr):
279279
return expr.value
280280
if isinstance(expr, TupleExpr):

0 commit comments

Comments
 (0)