1
0
Fork 0

fixed initialisation

This commit is contained in:
Christian Kühnel 2020-02-17 14:55:10 +01:00
parent ad0ad7ccc5
commit 29c4333033

View file

@ -27,12 +27,9 @@ class BuildStats:
Plain data object.
"""
successful = 0 # type: int
failed = 0 # type: int
def __init__(self, successful:int = 0, failed:int = 0):
self.successful = successful
self.failed = failed
self.successful = successful # type: int
self.failed = failed # type: int
def add(self, success: bool):
if success: