diff options
author | danieleades <33452915+danieleades@users.noreply.github.com> | 2023-01-02 09:21:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 09:21:32 +0000 |
commit | cc8f697a9ba15e9556e86a8375a75dc905381c1a (patch) | |
tree | ec409bd01fcd6b6cea1656f51f2322899aa72075 /sphinx/ext/apidoc.py | |
parent | dbf36f8b379f1e60232ecbf85a67e6ab9b096f24 (diff) | |
download | sphinx-git-cc8f697a9ba15e9556e86a8375a75dc905381c1a.tar.gz |
Address SIM103 lints (#11052)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'sphinx/ext/apidoc.py')
-rw-r--r-- | sphinx/ext/apidoc.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sphinx/ext/apidoc.py b/sphinx/ext/apidoc.py index c9367b465..2e5079681 100644 --- a/sphinx/ext/apidoc.py +++ b/sphinx/ext/apidoc.py @@ -179,11 +179,7 @@ def is_skipped_package(dirname: str, opts: Any, excludes: list[str] = []) -> boo return True # Check there is some showable module inside package - if all(is_excluded(path.join(dirname, f), excludes) for f in files): - # all submodules are excluded - return True - else: - return False + return all(is_excluded(path.join(dirname, f), excludes) for f in files) def is_skipped_module(filename: str, opts: Any, excludes: list[str]) -> bool: |