Skip to content

Commit

Permalink
Make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnes committed Jul 22, 2019
1 parent 60205be commit 38a1a32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libqtile/widget/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,16 +306,16 @@ def __init__(self, text=" ", width=bar.CALCULATED, **config):
def text(self):
return self._text

@property
def formatted_text(self):
return self.fmt.format(self._text)

@text.setter
def text(self, value):
self._text = value
if self.layout:
self.layout.text = self.formatted_text

@property
def formatted_text(self):
return self.fmt.format(self._text)

@property
def foreground(self):
return self._foreground
Expand Down

0 comments on commit 38a1a32

Please sign in to comment.