Skip to content

Commit

Permalink
Use correct tuple type (#13465)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Aug 21, 2022
1 parent 3aebb87 commit 9ba4491
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions misc/actions_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def apply_all(
directory: str,
extension: str,
to_extension: str = "",
exclude: tuple[str] = ("",),
exclude: tuple[str, ...] = ("",),
recursive: bool = True,
debug: bool = False,
) -> None:
Expand Down Expand Up @@ -100,7 +100,7 @@ def main(
directory: str,
extension: str,
to_extension: str,
exclude: tuple[str],
exclude: tuple[str, ...],
not_recursive: bool,
) -> None:
"""
Expand Down
2 changes: 1 addition & 1 deletion mypy/reachability.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def fixed_comparison(left: Targ, op: str, right: Targ) -> int:
return TRUTH_VALUE_UNKNOWN


def contains_int_or_tuple_of_ints(expr: Expression) -> None | int | tuple[int] | tuple[int, ...]:
def contains_int_or_tuple_of_ints(expr: Expression) -> None | int | tuple[int, ...]:
if isinstance(expr, IntExpr):
return expr.value
if isinstance(expr, TupleExpr):
Expand Down

0 comments on commit 9ba4491

Please sign in to comment.