style: pre-commit fixes

This commit is contained in:
pre-commit-ci[bot] 2024-12-15 21:51:35 +00:00
parent 890fcae7d8
commit 28d2a66350

View File

@ -1049,7 +1049,8 @@ TEST_SUBMODULE(pytypes, m) {
auto static_class = py::class_<Static>(m, "Static");
static_class.def(py::init());
static_class.attr_with_type_hint<py::typing::ClassVar<float>>("x") = 1.0;
static_class.attr_with_type_hint<py::typing::ClassVar<py::typing::Dict<py::str, int>>>("dict_str_int")
static_class.attr_with_type_hint<py::typing::ClassVar<py::typing::Dict<py::str, int>>>(
"dict_str_int")
= py::dict();
struct Instance {};