Browse Source

fix pybind11

blueloveTH 1 year ago
parent
commit
46f9e4ed4f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/pybind11/internal/class.h

+ 1 - 1
include/pybind11/internal/class.h

@@ -31,7 +31,7 @@ public:
         info.name = name;
         info.name = name;
 
 
         py_newfunction(
         py_newfunction(
-            py_tpgetmagic(this->index(), py_MagicNames::__new__),
+            py_tpgetmagic(this->index(), __new__),
             "__new__(type, *args, **kwargs)",
             "__new__(type, *args, **kwargs)",
             [](int, py_Ref stack) {
             [](int, py_Ref stack) {
                 auto cls = py_offset(stack, 0);
                 auto cls = py_offset(stack, 0);