Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 3, 2023
1 parent 70d7614 commit 7e0618e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<!-- ✨ You do not need to add a pull request reference or an author, this will be added automatically by CI. ✨ -->

- pdoc now documents PyO3 or pybind11 submodules that are not picked up by Python's builtin pkgutil module.
([#643](https://github.com/mitmproxy/pdoc/pull/643), @mhils)
- ([#633](https://github.com/mitmproxy/pdoc/issues/633), @mhils)
- Add support for `code-block` ReST directives
([#624](https://github.com/mitmproxy/pdoc/pull/624), @JCGoran)
Expand Down
1 change: 0 additions & 1 deletion pdoc/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import inspect
import os
from pathlib import Path
import pkgutil
import re
import sys
import textwrap
Expand Down
3 changes: 1 addition & 2 deletions pdoc/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ def iter_modules2(module: types.ModuleType) -> dict[str, pkgutil.ModuleInfo]:
submodules = {}

for submodule in pkgutil.iter_modules(
getattr(module, "__path__", []),
f"{module.__name__}."
getattr(module, "__path__", []), f"{module.__name__}."
):
name = submodule.name.rpartition(".")[2]
if mod_all is None or name in mod_all:
Expand Down

0 comments on commit 7e0618e

Please sign in to comment.