From 46a7aa0d2f3c4814e95784509b180895b46ebc01 Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sat, 1 Oct 2022 10:18:11 -0700 Subject: [PATCH] format --- jrnl/prompt.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/jrnl/prompt.py b/jrnl/prompt.py index 8c3323eb..988ae98a 100644 --- a/jrnl/prompt.py +++ b/jrnl/prompt.py @@ -51,11 +51,15 @@ def prompt_password(attempts: int, max_attempts: int) -> tuple[int, str]: print_msg(Message(MsgText.WrongPasswordTryAgain, MsgStyle.WARNING)) attempts += 1 - return attempts, print_msg( - Message(MsgText.Password, MsgStyle.PROMPT), - get_input=True, - hide_input=True, - ) or "" + return ( + attempts, + print_msg( + Message(MsgText.Password, MsgStyle.PROMPT), + get_input=True, + hide_input=True, + ) + or "", + ) def yesno(prompt: Message, default: bool = True) -> bool: