mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +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)
|
_populate_renames(inner._params, parameters)
|
||||||
else:
|
else:
|
||||||
try:
|
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:
|
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
|
return inner
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user