8000 changed to 'is not'/'is' vs '!='/'=' · aiedward/botbuilder-python@923eb38 · GitHub
[go: up one dir, main page]

Skip to content

Commit 923eb38

Browse files
committed
changed to 'is not'/'is' vs '!='/'='
1 parent ff45057 commit 923eb38

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_recognizers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def recognize_choices(
4545
--------
4646
A list of found choices, sorted by most relevant first.
4747
"""
48-
if utterance == None:
48+
if utterance is None:
4949
utterance = ''
5050

5151
# Normalize list of choices

libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/prompt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ async def begin_dialog(self, dc: DialogContext, options: object) -> DialogTurnRe
4444
if not isinstance(options, PromptOptions):
4545
raise TypeError('Prompt(): Prompt options are required for Prompt dialogs.')
4646
# Ensure prompts have input hint set
47-
if options.prompt != None and not options.prompt.input_hint:
47+
if options.prompt is not None and not options.prompt.input_hint:
4848
5AAB options.prompt.input_hint = InputHints.expecting_input
4949

50-
if options.retry_prompt != None and not options.retry_prompt.input_hint:
50+
if options.retry_prompt is not None and not options.retry_prompt.input_hint:
5151
options.retry_prompt.input_hint = InputHints.expecting_input
5252

5353
# Initialize prompt state

0 commit comments

Comments
 (0)
0