Skip to content

Commit b0b30d6

Browse files
committed
linting etc
1 parent 9752d82 commit b0b30d6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/gen_ref_pages.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,22 @@
2828

2929
init_module = data[parts[1:]] if len(parts) > 1 else data
3030
has_docstrings = init_module.has_docstring or any(
31-
member.has_docstrings for member in init_module.members.values()
31+
member.has_docstrings
32+
for member in init_module.members.values()
3233
if not (member.is_alias or member.is_module)
33-
)
34+
)
3435
else:
3536
has_docstrings = data[parts[1:]].has_docstrings
3637

3738
if not has_docstrings:
3839
continue
3940

40-
nav[parts] = doc_path.as_posix()
41+
nav[parts] = doc_path.as_posix()
4142
with mkdocs_gen_files.open(full_doc_path, "w") as fd:
4243
ident = ".".join(parts)
4344
fd.write(f"::: {ident}")
4445

4546
mkdocs_gen_files.set_edit_path(full_doc_path, path.relative_to(root))
4647

47-
with mkdocs_gen_files.open("reference/SUMMARY.md", "w") as nav_file:
48+
with mkdocs_gen_files.open("reference/SUMMARY.md", "w") as nav_file:
4849
nav_file.writelines(nav.build_literate_nav())

0 commit comments

Comments
 (0)