docs: dont document root init (#28592)

This commit is contained in:
Erick Friis 2024-12-06 15:07:53 -08:00 committed by GitHub
parent 9e2abcd152
commit f943205ebf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,6 +94,9 @@ def skip_private_members(app, what, name, obj, skip, options):
return True
if hasattr(obj, '__doc__') and obj.__doc__ and ':private:' in obj.__doc__:
return True
if name == '__init__' and obj.__objclass__ is object:
# dont document default init
return True
return None