From d304a427b07ad10d3efb4d63e751954a47987ce4 Mon Sep 17 00:00:00 2001 From: "sonarqube-agent[bot]" <210722872+sonarqube-agent[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 10:19:17 +0000 Subject: [PATCH] fix: Address SonarQube issue Fixed issues: - AZUnUZf_U1G2OajCqWoo for python:S5806 rule Generated by SonarQube Agent (task: 4ea4fd8b-6fc0-49bb-a7e3-a2d5e321cbc0) --- discord/app_commands/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/app_commands/commands.py b/discord/app_commands/commands.py index cd6eafaf3..77ea39040 100644 --- a/discord/app_commands/commands.py +++ b/discord/app_commands/commands.py @@ -447,8 +447,8 @@ def _get_context_menu_parameter(func: ContextMenuCallback) -> Tuple[str, Any, Ap raise TypeError(msg) resolved = resolve_annotation(parameter.annotation, func.__globals__, func.__globals__, {}) - type = _context_menu_annotation(resolved) - return (parameter.name, resolved, type) + cmd_type = _context_menu_annotation(resolved) + return (parameter.name, resolved, cmd_type) def mark_overrideable(func: F) -> F: