buffer: Reorder the short_name property to make mypy happy.

This commit is contained in:
Damir Jelić 2018-09-20 20:38:05 +02:00
parent ac5d1b823e
commit 0872948e9e

View file

@ -758,14 +758,14 @@ class WeechatChannelBuffer(object):
tags.append(SCRIPT_NAME + "_action") tags.append(SCRIPT_NAME + "_action")
self._print_action(user, message, date, tags) self._print_action(user, message, date, tags)
@property
def short_name(self):
return W.buffer_get_string(self._ptr, "short_name")
@property @property
def type(self): def type(self):
return W.buffer_get_string(self._ptr, "localvar_type") 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 @short_name.setter
def short_name(self, name): def short_name(self, name):
W.buffer_set(self._ptr, "short_name", name) W.buffer_set(self._ptr, "short_name", name)