mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Replace - with # in # type: ignore
comments in rename decorator
This commit is contained in:
parent
ae1979d17a
commit
9012c424bf
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user