mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-25 02:23:04 +00:00 
			
		
		
		
	Add __slots__ to locale_str
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user