From 0872948e9e9cc071f9beae6397c649b68e2de0ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 20 Sep 2018 20:38:05 +0200 Subject: [PATCH] buffer: Reorder the short_name property to make mypy happy. --- matrix/buffer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/matrix/buffer.py b/matrix/buffer.py index 95a97a2..21c2c4b 100644 --- a/matrix/buffer.py +++ b/matrix/buffer.py @@ -758,14 +758,14 @@ class WeechatChannelBuffer(object): tags.append(SCRIPT_NAME + "_action") self._print_action(user, message, date, tags) - @property - def short_name(self): - return W.buffer_get_string(self._ptr, "short_name") - @property def type(self): return W.buffer_get_string(self._ptr, "localvar_type") + @property + def short_name(self): + return W.buffer_get_string(self._ptr, "short_name") + @short_name.setter def short_name(self, name): W.buffer_set(self._ptr, "short_name", name)