File size: 234 Bytes
b6ac700
 
 
92bc446
b6ac700
 
9b6dda4
b6ac700
1
2
3
4
5
6
7
8
from typing import Union

class ProgressListener:
    def on_progress(self, current: Union[int, float], total: Union[int, float], desc: str = None):
        self.total = total

    def on_finished(self, desc: str = None):
        pass