mirror of
https://github.com/pybind/pybind11.git
synced 2024-12-01 17:37:15 +00:00
fix PYBIND11_OBJECT_DEFUALT
This commit is contained in:
parent
6f07805421
commit
5fb5ed9ab5
@ -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 <typename T>
|
||||
class TypeVarObject : public object {
|
||||
|
Loading…
Reference in New Issue
Block a user