skip typevar for now

This commit is contained in:
Michael Carlstrom 2024-07-26 10:47:08 -04:00
parent 479dffd98e
commit d1dc670142
1 changed files with 6 additions and 6 deletions

View File

@ -924,13 +924,13 @@ TEST_SUBMODULE(pytypes, m) {
m.attr("defined_PYBIND11_TYPING_H_HAS_STRING_LITERAL") = false; m.attr("defined_PYBIND11_TYPING_H_HAS_STRING_LITERAL") = false;
#endif #endif
struct TypeVarObject {}; // struct TypeVarObject {};
py::class_<TypeVarObject>(m, "TypeVarObject").type_params() // py::class_<TypeVarObject>(m, "TypeVarObject").type_params()
= py::make_tuple(py::typing::TypeVarObject<>("T")); // = py::make_tuple(py::typing::TypeVarObject<>("T"));
struct TypeVarObjectBound {}; // struct TypeVarObjectBound {};
py::class_<TypeVarObjectBound>(m, "TypeVarObjectBound").type_params() // py::class_<TypeVarObjectBound>(m, "TypeVarObjectBound").type_params()
= py::make_tuple(py::typing::TypeVarObject<int>("T")); // = py::make_tuple(py::typing::TypeVarObject<int>("T"));
struct ParamSpec {}; struct ParamSpec {};
py::class_<ParamSpec>(m, "ParamSpec").type_params() py::class_<ParamSpec>(m, "ParamSpec").type_params()