Fix test mypy errors

This commit is contained in:
Matthias
2023-03-02 06:23:01 +01:00
parent b4b8dde4fb
commit b980f45b2b
3 changed files with 8 additions and 3 deletions

View File

@@ -99,6 +99,10 @@ class Order(ModelBase):
def safe_filled(self) -> float:
return self.filled if self.filled is not None else self.amount or 0.0
@property
def safe_cost(self) -> float:
return self.cost or 0.0
@property
def safe_remaining(self) -> float:
return (