ui: fix mypy warnings

This commit is contained in:
rr-
2018-11-05 22:09:35 +01:00
parent 4800557df8
commit 37a8ecc7da
5 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -137,7 +137,7 @@ class EquipmentView(CustomLineBox):
)
def sync_equipment_change(
self, equipment_type: EquipmentType, item_name: str
self, equipment_type: EquipmentType, item_name: T.Optional[str]
) -> None:
self.value_texts[equipment_type].set_text(item_name or "")
@@ -253,7 +253,7 @@ class PlotView(DoubleLineBox):
ReadOnlyCheckBox(act_name(self.player.quest_book.act), state=False)
)
def sync_act_add(self):
def sync_act_add(self) -> None:
del self.list_box.body[: -self.cutoff]
if self.list_box.body:
self.list_box.body[-1].set_state(True)
@@ -296,7 +296,7 @@ class QuestBookView(DoubleLineBox):
if self.list_box.body:
self.list_box.body[-1].set_state(False)
def sync_quest_add(self):
def sync_quest_add(self) -> None:
del self.list_box.body[: -self.cutoff]
if self.list_box.body:
self.list_box.body[-1].set_state(True)