From 881b356ce8eee860d714898e564f55a6688ad8d5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 15 Dec 2024 20:47:10 +0000 Subject: [PATCH] style: pre-commit fixes --- tests/test_pytypes.cpp | 3 ++- tests/test_pytypes.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_pytypes.cpp b/tests/test_pytypes.cpp index 819ed18014..4bb6d0c251 100644 --- a/tests/test_pytypes.cpp +++ b/tests/test_pytypes.cpp @@ -1049,7 +1049,8 @@ TEST_SUBMODULE(pytypes, m) { auto point = py::class_(m, "Point"); point.def(py::init()); point.attr_with_type_hint>("x"); - point.attr_with_type_hint>>("dict_str_int") = py::dict(); + point.attr_with_type_hint>>("dict_str_int") + = py::dict(); m.attr_with_type_hint>("CONST_INT") = 3; m.attr("defined_PYBIND11_CPP17") = true; diff --git a/tests/test_pytypes.py b/tests/test_pytypes.py index 748aaa9fdf..edf6e43d6b 100644 --- a/tests/test_pytypes.py +++ b/tests/test_pytypes.py @@ -1143,7 +1143,6 @@ def test_class_attribute_types() -> None: assert m.Point().dict_str_int == {"hi": 3} - @pytest.mark.skipif( not m.defined_PYBIND11_CPP17, reason="C++17 Position Independent Code not available",