From 5fb5ed9ab51dd75441d0b2b6b4b16e77051a1b42 Mon Sep 17 00:00:00 2001 From: Michael Carlstrom Date: Fri, 26 Jul 2024 10:29:21 -0400 Subject: [PATCH] fix PYBIND11_OBJECT_DEFUALT --- include/pybind11/typing.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {