progressmonitor/__init__.py
def progress(self)-> float:
        """What percentage (range 0-1) of work is done (including submonitors)"""
        if self.total is None:
            return 0
        my_progress = self.worked
        my_progress += sum(s.progress * weight
                           for (s, weight) in self.sub_monitors.items())
        return min(1, my_progress / self.total)
def progress(self)-> float:
        """What percentage (range 0-1) of work is done (including submonitors)"""
        if self.total is None:
            return 0
        my_progress = self.worked
        my_progress += sum(s.progress * weight
                           for (s, weight) in self.sub_monitors.items())
        return min(1, my_progress / self.total)
def progress ( self ) -> float : if self . total is None : return 0 my_progress = self . worked my_progress += sum ( s . progress * weight for ( s , weight ) in self . sub_monitors . items ( ) ) return min ( 1 , my_progress / self . total )
What percentage (range 0-1) of work is done (including submonitors)
What percentage ( range 0 - 1 ) of work is done ( including submonitors )