summaryrefslogtreecommitdiff
path: root/poezio/windows/input_placeholders.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-10-24 16:28:55 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-10-24 16:28:55 +0200
commitcce1a4090a832a6fd2b7be4c610e469efb480b15 (patch)
tree1b44258871d331e9df9c6cadaea07b61468af9ff /poezio/windows/input_placeholders.py
parentd967c246c8168d923fd3c3e5ada28d49f9d3ee8e (diff)
downloadpoezio-cce1a4090a832a6fd2b7be4c610e469efb480b15.tar.gz
poezio-cce1a4090a832a6fd2b7be4c610e469efb480b15.tar.bz2
poezio-cce1a4090a832a6fd2b7be4c610e469efb480b15.tar.xz
poezio-cce1a4090a832a6fd2b7be4c610e469efb480b15.zip
Add __slots__ in most of the poezio.windows classes, to be more explicit about their data.
Diffstat (limited to 'poezio/windows/input_placeholders.py')
-rw-r--r--poezio/windows/input_placeholders.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/poezio/windows/input_placeholders.py b/poezio/windows/input_placeholders.py
index c5656f72..4d414636 100644
--- a/poezio/windows/input_placeholders.py
+++ b/poezio/windows/input_placeholders.py
@@ -19,6 +19,8 @@ class HelpText(Win):
command mode.
"""
+ __slots__ = ('txt')
+
def __init__(self, text: str = '') -> None:
Win.__init__(self)
self.txt = text # type: str