File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/prompt_toolkit/shortcuts Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1436,7 +1436,9 @@ def prompt(
1436
1436
# `PromptSession`, it can't be passed into the `prompt()` method.
1437
1437
# The `hide_password` is needed by the layout, so must be provided
1438
1438
# 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
+ )
1440
1442
1441
1443
return session .prompt (
1442
1444
message ,
@@ -1447,7 +1449,6 @@ def prompt(
1447
1449
completer = completer ,
1448
1450
complete_in_thread = complete_in_thread ,
1449
1451
is_password = is_password ,
1450
- # hide_password=hide_password,
1451
1452
key_bindings = key_bindings ,
1452
1453
bottom_toolbar = bottom_toolbar ,
1453
1454
style = style ,
You can’t perform that action at this time.
0 commit comments