Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 15, 2024
1 parent 14d2dda commit 881b356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/test_pytypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,8 @@ TEST_SUBMODULE(pytypes, m) {
auto point = py::class_<Point>(m, "Point");
point.def(py::init());
point.attr_with_type_hint<py::typing::ClassVar<float>>("x");
point.attr_with_type_hint<py::typing::ClassVar<py::typing::Dict<py::str, int>>>("dict_str_int") = py::dict();
point.attr_with_type_hint<py::typing::ClassVar<py::typing::Dict<py::str, int>>>("dict_str_int")
= py::dict();

m.attr_with_type_hint<py::typing::Final<int>>("CONST_INT") = 3;
m.attr("defined_PYBIND11_CPP17") = true;
Expand Down
1 change: 0 additions & 1 deletion tests/test_pytypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 881b356

Please sign in to comment.