Skip to content

Commit

Permalink
corrected linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
michdcode committed May 4, 2019
1 parent 3341d96 commit 618dc14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions securedrop_client/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion securedrop_client/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 618dc14

Please sign in to comment.