From f6d697ed2b82ce1ab4c23e0ab7bc6f3f3d85169e Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 18 Mar 2025 12:28:41 -0700 Subject: [PATCH] refactor: rename `warned` to `warn_setting` for clarity --- aider/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aider/main.py b/aider/main.py index 353cc58c8..f79022eba 100644 --- a/aider/main.py +++ b/aider/main.py @@ -796,7 +796,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F # Show warnings about unsupported settings after all model settings are fully resolved if args.check_model_accepts_settings: - warned = False + warn_setting = False settings_to_check = [ {"arg": args.reasoning_effort, "name": "reasoning_effort"}, {"arg": args.thinking_tokens, "name": "thinking_tokens"}, @@ -811,9 +811,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F f"Warning: The model {main_model.name} may not support the '{setting['name']}'" " setting." ) - warned = True + warn_setting = True - if warned: + if warn_setting: if not io.confirm_ask( "Sending unsupported parameters can cause API calls to fail. Continue?" ):