Browse Source

Add __slots__ to locale_str

pull/8316/head
Rapptz 3 years ago
parent
commit
dd40ff1d57
  1. 2
      discord/app_commands/translator.py

2
discord/app_commands/translator.py

@ -171,6 +171,8 @@ class locale_str:
Since these are passed via keyword arguments, the keys are strings.
"""
__slots__ = ('__message', 'extras')
def __init__(self, message: str, /, **kwargs: Any) -> None:
self.__message: str = message
self.extras: dict[str, Any] = kwargs

Loading…
Cancel
Save