Skip to content

Commit

Permalink
Applying remaining suggestions from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrizzell committed May 17, 2022
1 parent d65fd65 commit 9417ccc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adafruit_display_text/scrolling_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(

self.update()

def update(self, force: Optional[bool] = False) -> None:
def update(self, force: bool = False) -> None:
"""Attempt to update the display. If ``animate_time`` has elapsed since
previews animation frame then move the characters over by 1 index.
Must be called in the main loop of user code.
Expand Down Expand Up @@ -122,7 +122,7 @@ def current_index(self) -> int:
return self._current_index

@current_index.setter
def current_index(self, new_index: int):
def current_index(self, new_index: int) -> None:
if new_index < len(self.full_text):
self._current_index = new_index
else:
Expand All @@ -138,7 +138,7 @@ def full_text(self) -> str:
return self._full_text

@full_text.setter
def full_text(self, new_text: str):
def full_text(self, new_text: str) -> None:
if new_text[-1] != " ":
new_text = "{} ".format(new_text)
self._full_text = new_text
Expand Down

0 comments on commit 9417ccc

Please sign in to comment.