Tidy whitespace

This commit is contained in:
James R. Barlow
2025-02-06 00:40:35 -08:00
parent a5896c45e8
commit 19af116034
+4 -3
View File
@@ -97,11 +97,11 @@ class ProgressBar(Protocol):
print(f"{self.desc}: {self.current}/{self.total} ({percent:.1f}%)")
else:
print(f"{self.desc}: {self.current} units done")
@hookimpl
def get_progressbar_class():
return MyProgressBar
"""
def __init__(
@@ -144,7 +144,7 @@ class ProgressBar(Protocol):
OCRmyPDF calls this method repeatedly while processing pages or other tasks.
If your total is known and you track it, you might do something like:
.. code-block:: python
self.current += n
@@ -167,6 +167,7 @@ class ProgressBar(Protocol):
for percentage-based tracking (e.g., when ``total`` is 100).
"""
class NullProgressBar:
"""Progress bar API that takes no actions."""