From 3d74941bed2d27130b1defa4f30afb7f96ebc0bf Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 14 May 2018 00:48:53 +0200 Subject: [PATCH] Add slots --- pyrogram/client/ext/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyrogram/client/ext/utils.py b/pyrogram/client/ext/utils.py index f83557f2..5722032c 100644 --- a/pyrogram/client/ext/utils.py +++ b/pyrogram/client/ext/utils.py @@ -33,6 +33,8 @@ log = logging.getLogger(__name__) # TODO: Organize the code better? class Str(str): + __slots__ = "_client", "_entities" + def __init__(self, *args): super().__init__() self._client = None