Skip to content

Commit 47a7a57

Browse files
committed
mypy fix
1 parent 78b83a1 commit 47a7a57

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/prompt_toolkit/shortcuts/prompt.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,9 @@ def prompt(
14361436
# `PromptSession`, it can't be passed into the `prompt()` method.
14371437
# The `hide_password` is needed by the layout, so must be provided
14381438
# in the init as well.
1439-
session: PromptSession[str] = PromptSession(history=history, hide_password=hide_password)
1439+
session: PromptSession[str] = PromptSession(
1440+
history=history, hide_password=hide_password or False
1441+
)
14401442

14411443
return session.prompt(
14421444
message,
@@ -1447,7 +1449,6 @@ def prompt(
14471449
completer=completer,
14481450
complete_in_thread=complete_in_thread,
14491451
is_password=is_password,
1450-
# hide_password=hide_password,
14511452
key_bindings=key_bindings,
14521453
bottom_toolbar=bottom_toolbar,
14531454
style=style,

0 commit comments

Comments
 (0)