From b6fd867e2d0ebf97e5250129eef0595429bdbc9c Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Mon, 31 May 2021 03:54:55 +0200 Subject: [PATCH] Make docformatter happy --- mmpy_bot/plugins/base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mmpy_bot/plugins/base.py b/mmpy_bot/plugins/base.py index 92ff5f1b..71d31b4f 100644 --- a/mmpy_bot/plugins/base.py +++ b/mmpy_bot/plugins/base.py @@ -72,7 +72,7 @@ async def call_function( class HelpPlugin(Plugin): - """Provide a `help` function that lists functions provided by all plygins""" + """Provide a `help` function that lists functions provided by all plygins.""" def __init__( self, @@ -130,7 +130,7 @@ def custom_sort(rec): @listen_to("^help$", needs_mention=True) async def help(self, message: Message): - """Shows this help information""" + """Shows this help information.""" self.driver.reply_to(message, self.get_help_string(), direct=self.direct_help) @@ -200,7 +200,7 @@ def initialize_manager(self, driver: Driver, settings: Settings): ) def _split_docstring(self, doc): - """Split docstring into first line (header) and full body""" + """Split docstring into first line (header) and full body.""" return (doc.split("\n", 1)[0], doc) if doc is not None else ("", "") def _generate_plugin_help( @@ -209,7 +209,7 @@ def _generate_plugin_help( help_type: str, items: ItemsView[re.Pattern, List[Function]], ): - """Build PluginHelpInfo objects from plugin and function information + """Build PluginHelpInfo objects from plugin and function information. Returns one PluginHelpInfo instance for every listener (message or webhook) """