def __init__(self, start_date, end_date):
        # this is only approximate as it doesn't take weekends into account
        self.start_date = start_date
        self.num_days = (start_date - end_date).days
        self._date = start_date
        self.prog_bar = '[]'
        self.fill_char = '*'
        self.width = 40
        self.set_date(self.start_date)

        # register our callback with the messaging api
        self._subj = uuid.uuid1()
        messaging.register_message_handler(self._subj, self.__msg_callback)
dataset/ETHPy150Open manahl/mdf/mdf/lab/progress.py/ProgressBar.__init__/swapped operands of `-`