From c68a0f05d85841f107501899627929bdc6829483 Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Sat, 26 Jun 2021 21:34:58 -0600 Subject: [PATCH] Added types to setters --- freqtrade/persistence/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/persistence/models.py b/freqtrade/persistence/models.py index 508bb41a6..b56876c9d 100644 --- a/freqtrade/persistence/models.py +++ b/freqtrade/persistence/models.py @@ -285,17 +285,17 @@ class LocalTrade(): return self.__is_short or False @is_short.setter - def is_short(self, val): + def is_short(self, val: bool): self.__is_short = val @leverage.setter - def leverage(self, lev): + def leverage(self, lev: float): self.__leverage = lev self.__borrowed = self.amount * (lev-1) self.amount = self.amount * lev @borrowed.setter - def borrowed(self, bor): + def borrowed(self, bor: float): self.__leverage = self.amount / (self.amount - self.borrowed) self.__borrowed = bor # End of margin trading properties