Skip to content

Commit 93d093c

Browse files
committed
Add back using module_def = PyModuleDef;
1 parent 753bc5e commit 93d093c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/pybind11/pybind11.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,9 @@ class module_ : public object {
14701470
PyModule_AddObject(ptr(), name, obj.inc_ref().ptr() /* steals a reference */);
14711471
}
14721472

1473+
// DEPRECATED (since PR #5688): Use PyModuleDef directly instead.
1474+
using module_def = PyModuleDef;
1475+
14731476
/** \rst
14741477
Create a new top-level module that can be used as the main module of a C extension.
14751478

0 commit comments

Comments
 (0)