diff --git a/pybind11/__init__.py b/pybind11/__init__.py index 99408ea2cf..e9d033c4b4 100644 --- a/pybind11/__init__.py +++ b/pybind11/__init__.py @@ -2,7 +2,7 @@ import sys -if sys.version_info < (3, 8): +if sys.version_info < (3, 8): # noqa: UP036 msg = "pybind11 does not support Python < 3.8. v2.13 was the last release supporting Python 3.7." raise ImportError(msg) diff --git a/pybind11/setup_helpers.py b/pybind11/setup_helpers.py index ced506f8c2..f24291818c 100644 --- a/pybind11/setup_helpers.py +++ b/pybind11/setup_helpers.py @@ -249,7 +249,7 @@ def has_flag(compiler: Any, flag: str) -> bool: cpp_flag_cache = None -@lru_cache() +@lru_cache def auto_cpp_level(compiler: Any) -> str | int: """ Return the max supported C++ std level (17, 14, or 11). Returns latest on Windows. diff --git a/pyproject.toml b/pyproject.toml index 64f70ae8a1..c5e2651d6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ messages_control.disable = [ ] [tool.ruff] -target-version = "py37" +target-version = "py38" src = ["src"] [tool.ruff.lint]