diff --git a/pyproject.toml b/pyproject.toml index fda6dd5d..5eb0080c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ dev = [ "black == 24.4.2", "flake8 == 7.1.0", "flake8-bugbear == 24.10.31", - "mypy == 1.11.1", + "mypy == 1.13.0", "ufmt == 2.8.0", "usort == 1.0.8.post1", ] diff --git a/src/fixit/rules/rewrite_to_literal.py b/src/fixit/rules/rewrite_to_literal.py index f9be8893..a12aacec 100644 --- a/src/fixit/rules/rewrite_to_literal.py +++ b/src/fixit/rules/rewrite_to_literal.py @@ -135,7 +135,7 @@ def visit_Call(self, node: cst.Call) -> None: cst.ensure_type( ele.value, ( - cst.Tuple # type: ignore + cst.Tuple if isinstance(ele.value, cst.Tuple) else cst.List ),