Skip to content

Commit

Permalink
Fix sphinx-doc#10200: apidoc: Duplicated submodules are shown for mod…
Browse files Browse the repository at this point in the history
…ules
  • Loading branch information
tk0miya authored and AA-Turner committed Apr 30, 2022
1 parent 5134dbc commit 6050062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -72,6 +72,8 @@ Features added
Bugs fixed
----------

* #10200: apidoc: Duplicated submodules are shown for modules having both .pyx
and .so files
* #10279: autodoc: Default values for keyword only arguments in overloaded
functions are rendered as a string literal
* #10280: autodoc: :confval:`autodoc_docstring_signature` unexpectedly generates
Expand Down
1 change: 1 addition & 0 deletions sphinx/ext/apidoc.py
Expand Up @@ -117,6 +117,7 @@ def create_package_file(root: str, master_package: str, subroot: str, py_files:
submodules = [sub.split('.')[0] for sub in py_files
if not is_skipped_module(path.join(root, sub), opts, excludes) and
not is_initpy(sub)]
submodules = sorted(set(submodules))
submodules = [module_join(master_package, subroot, modname)
for modname in submodules]
options = copy(OPTIONS)
Expand Down

0 comments on commit 6050062

Please sign in to comment.