Skip to content

Commit f943205

Browse files
author
Erick Friis
authored
docs: dont document root init (#28592)
1 parent 9e2abcd commit f943205

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/api_reference/conf.py

+3
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def skip_private_members(app, what, name, obj, skip, options):
9494
return True
9595
if hasattr(obj, '__doc__') and obj.__doc__ and ':private:' in obj.__doc__:
9696
return True
97+
if name == '__init__' and obj.__objclass__ is object:
98+
# dont document default init
99+
return True
97100
return None
98101

99102

0 commit comments

Comments
 (0)