From d42df4b8139370b626c2c53de1ad1849b9e2028e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 23:15:54 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#9235) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.1.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.4...v0.1.5) - [github.com/psf/black: 23.10.1 → 23.11.0](https://github.com/psf/black/compare/23.10.1...23.11.0) - [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.1...v1.7.0) - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v3.1.0](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.3...v3.1.0) * Remove unused type ignore Co-authored-by: Pierre Sassoulas --- .pre-commit-config.yaml | 8 ++++---- pylint/checkers/base_checker.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e013ac3785..d89b392f86 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: doc/data/messages/m/missing-final-newline/bad/crlf.py )$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.4" + rev: "v0.1.5" hooks: - id: ruff args: ["--fix"] @@ -39,7 +39,7 @@ repos: - id: isort exclude: doc/data/messages/ - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 23.11.0 hooks: - id: black args: [--safe, --quiet] @@ -112,7 +112,7 @@ repos: files: ^(doc/(.*/)*.*\.rst) additional_dependencies: [Sphinx==5.0.1] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.6.1 + rev: v1.7.0 hooks: - id: mypy name: mypy @@ -131,7 +131,7 @@ repos: ] exclude: tests(/\w*)*/functional/|tests/input|tests(/.*)+/conftest.py|doc/data/messages|tests(/\w*)*data/ - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.3 + rev: v3.1.0 hooks: - id: prettier args: [--prose-wrap=always, --print-width=88] diff --git a/pylint/checkers/base_checker.py b/pylint/checkers/base_checker.py index ab76357c49..d06572ab4b 100644 --- a/pylint/checkers/base_checker.py +++ b/pylint/checkers/base_checker.py @@ -188,10 +188,10 @@ def create_message_definition_from_tuple( default_scope = WarningScope.NODE options: ExtraMessageOptions = {} if len(msg_tuple) == 4: - (msg, symbol, descr, msg_options) = msg_tuple # type: ignore[misc] + (msg, symbol, descr, msg_options) = msg_tuple options = ExtraMessageOptions(**msg_options) elif len(msg_tuple) == 3: - (msg, symbol, descr) = msg_tuple # type: ignore[misc] + (msg, symbol, descr) = msg_tuple else: error_msg = """Messages should have a msgid, a symbol and a description. Something like this :