From 58bb6889ce415f5968d2a01e19689fd465219192 Mon Sep 17 00:00:00 2001 From: xqt Date: Mon, 2 Dec 2024 17:20:20 +0100 Subject: [PATCH] doc: single line docstrings needs an additional line feed Bug: T381279 Change-Id: Ifb72012068ebdf3eefd5c0ef418854257c3b041f --- pywikibot/tools/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py index d36f52c092..ba49aa0681 100644 --- a/pywikibot/tools/__init__.py +++ b/pywikibot/tools/__init__.py @@ -192,7 +192,7 @@ def __init__(self, cls_method) -> None: else: spaces = '' - self.__doc__ += f'\n{spaces}:rtype: {rtype}' + self.__doc__ += f'\n\n{spaces}:rtype: {rtype}' def __get__(self, instance, owner): """Get the attribute of the owner class by its method."""