Skip to content

Commit

Permalink
Widgets: Add missing type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jul 29, 2020
1 parent 37b0be2 commit 1150368
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions weblate/trans/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#


import os.path
from typing import Tuple

import cairo
import gi
Expand Down Expand Up @@ -61,9 +61,9 @@ def register_widget(widget):
class Widget:
"""Generic widget class."""

name = None
name = ""
verbose = ""
colors = ()
colors: Tuple[str, ...] = ()
extension = "png"
content_type = "image/png"
order = 100
Expand Down Expand Up @@ -113,7 +113,7 @@ class BitmapWidget(ContentWidget):
head_template = '<span letter_spacing="-500"><b>{}</b></span>'
foot_template = '<span letter_spacing="1000">{}</span>'
font_size = 10
line_spacing = 1
line_spacing = 1.0
offset = 0
column_offset = 0
lines = True
Expand Down

0 comments on commit 1150368

Please sign in to comment.