From ef87e20bf9285a641e7ad6193ea559438d4a5bee Mon Sep 17 00:00:00 2001 From: Michael Miele Date: Thu, 30 Jan 2020 14:44:20 -0800 Subject: [PATCH] Fixed style errors Indented .. note:: content. Replaced :method: with :meth: --- libraries/botbuilder-core/botbuilder/core/bot_state.py | 2 +- .../botbuilder-dialogs/botbuilder/dialogs/prompts/prompt.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/botbuilder-core/botbuilder/core/bot_state.py b/libraries/botbuilder-core/botbuilder/core/bot_state.py index 7f2c26984..0b7aaa53d 100644 --- a/libraries/botbuilder-core/botbuilder/core/bot_state.py +++ b/libraries/botbuilder-core/botbuilder/core/bot_state.py @@ -132,7 +132,7 @@ async def clear_state(self, turn_context: TurnContext): :return: None .. note:: - This function must be called in order for the cleared state to be persisted to the underlying store. + This function must be called in order for the cleared state to be persisted to the underlying store. """ if turn_context is None: raise TypeError("BotState.clear_state(): turn_context cannot be None.") diff --git a/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt.py b/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt.py index 8c9c0edc5..3ed1a51f0 100644 --- a/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt.py +++ b/libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt.py @@ -28,9 +28,9 @@ class Prompt(Dialog): .. remarks:: When the prompt ends, it returns an object that represents the value it was prompted for. - Use :method:`DialogSet.add()` or :method:`ComponentDialog.add_dialog()` to add a prompt to a dialog set or + Use :meth:`DialogSet.add()` or :meth:`ComponentDialog.add_dialog()` to add a prompt to a dialog set or component dialog, respectively. - Use :method:`DialogContext.prompt()` or :meth:`DialogContext.begin_dialog()` to start the prompt. + Use :meth:`DialogContext.prompt()` or :meth:`DialogContext.begin_dialog()` to start the prompt. .. note:: If you start a prompt from a :class:`WaterfallStep` in a :class:`WaterfallDialog`, then the prompt result will be available in the next step of the waterfall.