From a53bf0efc888f67a6643304fb837ffb2ca476329 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 02:38:10 +0000 Subject: [PATCH] style: pre-commit fixes --- tests/test_pytypes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_pytypes.py b/tests/test_pytypes.py index 9ae2f4ff9..fd5a0f80a 100644 --- a/tests/test_pytypes.py +++ b/tests/test_pytypes.py @@ -1109,6 +1109,7 @@ def get_annotations_helper(o): return o.__dict__.get("__annotations__", {}) return getattr(o, "__annotations__", {}) + @pytest.mark.skipif( not m.defined_PYBIND11_CPP17, reason="C++17 Position Independent Code not available", @@ -1119,6 +1120,7 @@ def test_module_attribute_types() -> None: assert module_annotations["list_int"] == "list[int]" assert module_annotations["set_str"] == "set[str]" + @pytest.mark.skipif( not m.defined_PYBIND11_CPP17, reason="C++17 Position Independent Code not available", @@ -1131,6 +1133,7 @@ def test_class_attribute_types() -> None: assert annotations["x"] == "float" assert annotations["dict_str_int"] == "dict[str, int]" + @pytest.mark.skipif( not m.defined_PYBIND11_CPP17, reason="C++17 Position Independent Code not available",