Skip to content

Commit 49580cf

Browse files
committed
Change [tool.ruff] target-version to "py38", as suggested by @Skylion007
1 parent 64a7b44 commit 49580cf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pybind11/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import sys
44

5-
if sys.version_info < (3, 8):
5+
if sys.version_info < (3, 8): # noqa: UP036
66
msg = "pybind11 does not support Python < 3.8. v2.13 was the last release supporting Python 3.7."
77
raise ImportError(msg)
88

pybind11/setup_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def has_flag(compiler: Any, flag: str) -> bool:
249249
cpp_flag_cache = None
250250

251251

252-
@lru_cache()
252+
@lru_cache
253253
def auto_cpp_level(compiler: Any) -> str | int:
254254
"""
255255
Return the max supported C++ std level (17, 14, or 11). Returns latest on Windows.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ messages_control.disable = [
4545
]
4646

4747
[tool.ruff]
48-
target-version = "py37"
48+
target-version = "py38"
4949
src = ["src"]
5050

5151
[tool.ruff.lint]

0 commit comments

Comments
 (0)