diff --git a/securedrop_client/gui/__init__.py b/securedrop_client/gui/__init__.py index 24cc2f0e3..c342b7e8f 100644 --- a/securedrop_client/gui/__init__.py +++ b/securedrop_client/gui/__init__.py @@ -38,7 +38,7 @@ class SvgToggleButton(QPushButton): The display size of the SVG, defaults to filling the entire size of the widget. """ - def __init__(self, on: str, off: str, svg_size: str=None): + def __init__(self, on: str, off: str, svg_size: str = None): super().__init__() # Set layout @@ -87,7 +87,8 @@ class SvgPushButton(QPushButton): The display size of the SVG, defaults to filling the entire size of the widget. """ - def __init__(self, normal: str, disabled: str=None, active: str=None, selected: str=None, svg_size:str=None) -> None: + def __init__(self, normal: str, disabled: str = None, active: str = None, + selected: str = None, svg_size: str = None) -> None: super().__init__() # Set layout @@ -122,7 +123,7 @@ class SvgLabel(QLabel): The display size of the SVG, defaults to filling the entire size of the widget. """ - def __init__(self, filename: str, svg_size: str=None) -> None: + def __init__(self, filename: str, svg_size: str = None) -> None: super().__init__() # Remove margins and spacing diff --git a/securedrop_client/resources/__init__.py b/securedrop_client/resources/__init__.py index ec78e7731..23e29a7e1 100644 --- a/securedrop_client/resources/__init__.py +++ b/securedrop_client/resources/__init__.py @@ -63,7 +63,7 @@ def load_toggle_icon(on: str, off: str) -> QIcon: return icon -def load_icon(normal: str, disabled: str=None, active: str=None, selected: str=None) -> QIcon: +def load_icon(normal: str, disabled: str = None, active: str = None, selected: str = None) -> QIcon: """ Add the contents of Scalable Vector Graphics (SVG) files provided for associated icon modes, see https://doc.qt.io/qt-5/qicon.html#Mode-enum.