From cce1a4090a832a6fd2b7be4c610e469efb480b15 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 24 Oct 2018 16:28:55 +0200 Subject: Add __slots__ in most of the poezio.windows classes, to be more explicit about their data. --- poezio/windows/image.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'poezio/windows/image.py') diff --git a/poezio/windows/image.py b/poezio/windows/image.py index 309fe0e6..75f4d588 100644 --- a/poezio/windows/image.py +++ b/poezio/windows/image.py @@ -24,6 +24,8 @@ class ImageWin(Win): A window which contains either an image or a border. """ + __slots__ = ('_image', '_display_avatar') + def __init__(self) -> None: self._image = None # type: Optional[Image] Win.__init__(self) -- cgit v1.2.3