diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 05e01aafe..af549ed22 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: end-of-file-fixer exclude: tests/testdata - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.8.1" + rev: "v0.8.4" hooks: - id: ruff args: ["--fix"] @@ -22,7 +22,7 @@ repos: exclude: tests/testdata|setup.py types: [python] - repo: https://github.com/asottile/pyupgrade - rev: v3.19.0 + rev: v3.19.1 hooks: - id: pyupgrade exclude: tests/testdata @@ -53,7 +53,7 @@ repos: # "--load-plugins=pylint.extensions.docparams", We're not ready for that ] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.14.0 hooks: - id: mypy language: python diff --git a/astroid/interpreter/_import/util.py b/astroid/interpreter/_import/util.py index 511ec4f97..976fc005b 100644 --- a/astroid/interpreter/_import/util.py +++ b/astroid/interpreter/_import/util.py @@ -7,7 +7,7 @@ import pathlib import sys from functools import lru_cache -from importlib._bootstrap_external import _NamespacePath +from importlib._bootstrap_external import _NamespacePath # type: ignore[attr-defined] from importlib.util import _find_spec_from_path # type: ignore[attr-defined] from astroid.const import IS_PYPY