mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-31 07:10:30 +00:00
Merge branch 'master' into sh_merge_master
This commit is contained in:
commit
449f413a95
@ -1324,7 +1324,7 @@ PYBIND11_NAMESPACE_BEGIN(detail)
|
|||||||
|
|
||||||
template <>
|
template <>
|
||||||
struct handle_type_name<module_> {
|
struct handle_type_name<module_> {
|
||||||
static constexpr auto name = const_name("module");
|
static constexpr auto name = const_name("types.ModuleType");
|
||||||
};
|
};
|
||||||
|
|
||||||
PYBIND11_NAMESPACE_END(detail)
|
PYBIND11_NAMESPACE_END(detail)
|
||||||
|
@ -81,6 +81,13 @@ def test_pydoc():
|
|||||||
assert pydoc.text.docmodule(pybind11_tests)
|
assert pydoc.text.docmodule(pybind11_tests)
|
||||||
|
|
||||||
|
|
||||||
|
def test_module_handle_type_name():
|
||||||
|
assert (
|
||||||
|
m.def_submodule.__doc__
|
||||||
|
== "def_submodule(arg0: types.ModuleType, arg1: str) -> types.ModuleType\n"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def test_duplicate_registration():
|
def test_duplicate_registration():
|
||||||
"""Registering two things with the same name"""
|
"""Registering two things with the same name"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user