mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Replace - with # in # type: ignore
comments in rename decorator
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user