docs: enable private docstring members sphinx (#28586)

This commit is contained in:
Erick Friis 2024-12-06 13:19:52 -08:00 committed by GitHub
parent 221ab03fe4
commit 4f99952129
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,8 @@ def _load_module_members(module_path: str, namespace: str) -> ModuleMembers:
continue
if type_.__module__ != module_path:
continue
if ":private:" in (type_.__doc__ or ""):
continue
if inspect.isclass(type_):
# The type of the class is used to select a template