fix flake8 E712 (comparison-to-bool)

This commit is contained in:
Pavol Rusnak
2023-01-30 11:46:44 +00:00
parent 9ef4bd8fb9
commit f6bd8684d3
16 changed files with 32 additions and 32 deletions
+3 -3
View File
@@ -34,12 +34,12 @@ class PaymentStatus(NamedTuple):
@property
def failed(self) -> bool:
return self.paid == False
return self.paid is False
def __str__(self) -> str:
if self.paid == True:
if self.paid is True:
return "settled"
elif self.paid == False:
elif self.paid is False:
return "failed"
elif self.paid == None:
return "still pending"