simplify setting percentage to 0.0

This commit is contained in:
Guthrie McAfee Armstrong 2022-09-21 13:13:33 -04:00 committed by deeplow
parent 9989ffea37
commit 1bd8354228
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -52,10 +52,9 @@ def run_command(
class DangerzoneConverter:
def __init__(self) -> None:
self.percentage: float = 0.0 # TODO Optional[float], but this default value will be overwritten immediately
self.percentage: float = 0.0
def document_to_pixels(self) -> None:
self.percentage: float = 0.0
conversions: Dict[str, Dict[str, Optional[str]]] = {
# .pdf