style: pre-commit fixes

This commit is contained in:
pre-commit-ci[bot] 2024-12-06 02:38:10 +00:00
parent b318d0220c
commit a53bf0efc8

View File

@ -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",