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(
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 ,
You can’t perform that action at this time.
0 commit comments