From 3bf55b22ce9a841242c55b2efcedbd8f3a99ccc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Tue, 3 Dec 2024 16:22:06 +0100 Subject: [PATCH] fix: Actually check if a module is public when rendering auto-generated summary table for modules Issue-203: https://github.com/mkdocstrings/python/issues/203 --- src/mkdocstrings_handlers/python/rendering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkdocstrings_handlers/python/rendering.py b/src/mkdocstrings_handlers/python/rendering.py index b3667b0..5cbd5eb 100644 --- a/src/mkdocstrings_handlers/python/rendering.py +++ b/src/mkdocstrings_handlers/python/rendering.py @@ -594,7 +594,7 @@ def do_as_modules_section( description=module.docstring.value.split("\n", 1)[0] if module.docstring else "", ) for module in modules - if not check_public or module + if not check_public or module.is_public ], )