From 46e7a3a6b0a753e8aec261cf1ed9652ac6d9dee6 Mon Sep 17 00:00:00 2001 From: Muhamed Fazal PS Date: Wed, 15 Jul 2026 14:31:58 +0530 Subject: [PATCH] Fix #99: Rename ctx variables to avoid shadowing CLIContext and click.Context --- openagent_eval/cli/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openagent_eval/cli/main.py b/openagent_eval/cli/main.py index 4cd0adc..7d90ef4 100644 --- a/openagent_eval/cli/main.py +++ b/openagent_eval/cli/main.py @@ -77,20 +77,20 @@ def main( ) -> None: """OpenAgent Eval - Evaluate RAG systems and AI Agents.""" # Set global CLI context - ctx = CLIContext( + cli_ctx = CLIContext( quiet=quiet, json_output=json_output, no_color=no_color, verbose=verbose, ) - set_context(ctx) + set_context(cli_ctx) # Show banner when invoked without a subcommand (help display) try: import click - ctx = click.get_current_context(silent=True) - if ctx is not None and ctx.invoked_subcommand is None and not quiet: + click_ctx = click.get_current_context(silent=True) + if click_ctx is not None and click_ctx.invoked_subcommand is None and not quiet: create_mini_banner() except Exception: pass