jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/676711 )
Change subject: [doc] Skip empty __init__ ......................................................................
[doc] Skip empty __init__
Change-Id: If8cd57dda4b24ade071947f3bca1d0f7359450ab --- M docs/conf.py M pywikibot/site/_apisite.py 2 files changed, 3 insertions(+), 4 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/docs/conf.py b/docs/conf.py index e4be68c..bbc1bb4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -451,7 +451,7 @@ """Skip certain members from documentation.""" inclusions = ('__init__', ) exclusions = () - if name in inclusions: + if name in inclusions and len(str.splitlines(obj.__doc__ or '')) >= 3: return False if name.startswith('__') and name.endswith('__'): return True diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py index f9233c9..951530e 100644 --- a/pywikibot/site/_apisite.py +++ b/pywikibot/site/_apisite.py @@ -102,10 +102,9 @@ WikibaseClientMixin, ):
- """ - API interface to MediaWiki site. + """API interface to MediaWiki site.
- Do not instantiate directly; use pywikibot.Site function. + Do not instantiate directly; use L{pywikibot.Site} function. """
@remove_last_args(['sysop'])
pywikibot-commits@lists.wikimedia.org