def remaining(self) -> Optional[float]:
        """Optional[float]: Get the number of steps remaining, if a non-None total was set."""
        if self.total is None:
            return None
        return self.total - self.completed
Optional[float]: Get the number of steps remaining, if a non-None total was set.
rich/progress.py