mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-15 18:29:52 +00:00
Add __slots__ to locale_str
This commit is contained in:
parent
9ce1541775
commit
dd40ff1d57
@ -171,6 +171,8 @@ class locale_str:
|
|||||||
Since these are passed via keyword arguments, the keys are strings.
|
Since these are passed via keyword arguments, the keys are strings.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__slots__ = ('__message', 'extras')
|
||||||
|
|
||||||
def __init__(self, message: str, /, **kwargs: Any) -> None:
|
def __init__(self, message: str, /, **kwargs: Any) -> None:
|
||||||
self.__message: str = message
|
self.__message: str = message
|
||||||
self.extras: dict[str, Any] = kwargs
|
self.extras: dict[str, Any] = kwargs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user