mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-08 16:43:15 +08:00
Always record the __module__ in newly created Python types
This commit is contained in:
parent
96c10530aa
commit
04358b02ed
@ -521,7 +521,6 @@ public:
|
||||
m_ptr = (PyObject *) type;
|
||||
|
||||
/* Needed by pydoc */
|
||||
if (((module &) scope).check())
|
||||
attr("__module__") = scope_name;
|
||||
|
||||
auto &type_info = detail::get_internals().registered_types[tinfo];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user