Skip to content

Commit

Permalink
Added module type hint test
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlegiantJGC authored Dec 30, 2024
1 parent f828826 commit 29679eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ def test_pydoc():
assert pydoc.text.docmodule(pybind11_tests)


def test_module_handle_type_name():
assert doc(m.def_submodule) == "def_submodule(arg0: module, arg1: str) -> types.ModuleType"


def test_duplicate_registration():
"""Registering two things with the same name"""

Expand Down

0 comments on commit 29679eb

Please sign in to comment.