Fix abstract Session method ordering

This commit is contained in:
Tulir Asokan 2018-03-02 11:11:59 +02:00
parent 4c64d53e71
commit df3faaeb7f

View File

@ -52,14 +52,6 @@ class Session(ABC):
def auth_key(self, value): def auth_key(self, value):
raise NotImplementedError raise NotImplementedError
@property
def time_offset(self):
return self._time_offset
@time_offset.setter
def time_offset(self, value):
self._time_offset = value
@property @property
@abstractmethod @abstractmethod
def salt(self): def salt(self):
@ -127,6 +119,14 @@ class Session(ABC):
def report_errors(self): def report_errors(self):
return self._report_errors return self._report_errors
@property
def time_offset(self):
return self._time_offset
@time_offset.setter
def time_offset(self, value):
self._time_offset = value
@property @property
def flood_sleep_threshold(self): def flood_sleep_threshold(self):
return self._flood_sleep_threshold return self._flood_sleep_threshold