diff --git a/include/pybind11/typing.h b/include/pybind11/typing.h index 5375659b4..f6e0a2916 100644 --- a/include/pybind11/typing.h +++ b/include/pybind11/typing.h @@ -125,10 +125,10 @@ class TypeVar : public object { #endif class NameWrapper : public object { - PYBIND11_OBJECT_DEFAULT(TypeVarObject, object, PyObject_Type) + PYBIND11_OBJECT_DEFAULT(NameWrapper, object, PyObject_Type) using object::object; NameWrapper(const char *name) { attr("__name__") = name; } -} +}; template class TypeVarObject : public object {