From 9012c424bf12f237003522b4387b485e35411a4c Mon Sep 17 00:00:00 2001 From: Ryu juheon Date: Mon, 28 Mar 2022 22:28:01 +0900 Subject: [PATCH] Replace - with # in `# type: ignore` comments in rename decorator --- 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 c359a3e72..4b2133336 100644 --- a/discord/app_commands/commands.py +++ b/discord/app_commands/commands.py @@ -1348,9 +1348,9 @@ def rename(**parameters: str) -> Callable[[T], T]: _populate_renames(inner._params, parameters) else: try: - inner.__discord_app_commands_param_rename__.update(parameters) # type: ignore - Runtime attribute access + inner.__discord_app_commands_param_rename__.update(parameters) # type: ignore # Runtime attribute access except AttributeError: - inner.__discord_app_commands_param_rename__ = parameters # type: ignore - Runtime attribute assignment + inner.__discord_app_commands_param_rename__ = parameters # type: ignore # Runtime attribute assignment return inner