Replace - with # in # type: ignore comments in rename decorator

This commit is contained in:
Ryu juheon 2022-03-28 22:28:01 +09:00 committed by GitHub
parent ae1979d17a
commit 9012c424bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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