diff --git a/include/pybind11/typing.h b/include/pybind11/typing.h index 2763239f4..5375659b4 100644 --- a/include/pybind11/typing.h +++ b/include/pybind11/typing.h @@ -136,7 +136,7 @@ class TypeVarObject : public object { using object::object; TypeVarObject(const char *name) { attr("__name__") = name; - attr("__bound__") = NameWrapper(make_caster::name); + attr("__bound__") = NameWrapper(pybind11::detail::make_caster::name); attr("__constraints__") = pybind11::make_tuple(); } // TypeVarObject(const char *name, py::typing::Tuple tuple){