From 843022405c5610e9f55e36ace3b68b3d2c6a1854 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 11:30:41 -0700 Subject: [PATCH] Bump mypy from 1.11.1 to 1.13.0 (#491) * Bump mypy from 1.11.1 to 1.13.0 Bumps [mypy](https://github.com/python/mypy) from 1.11.1 to 1.13.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.11.1...v1.13.0) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Fix type error --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Amethyst Reese --- pyproject.toml | 2 +- src/fixit/rules/rewrite_to_literal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ),