diff --git a/khal/ui/__init__.py b/khal/ui/__init__.py index f3ea06de0..69718bfd6 100644 --- a/khal/ui/__init__.py +++ b/khal/ui/__init__.py @@ -243,7 +243,7 @@ def __init__( set_focus_date_callback=None, **kwargs) -> None: self._init: bool = True - self.parent: 'ClassicView' = parent + self.parent: ClassicView = parent self.delete_status = delete_status self.toggle_delete_instance = toggle_delete_instance self.toggle_delete_all = toggle_delete_all diff --git a/khal/ui/calendarwidget.py b/khal/ui/calendarwidget.py index 38de6a28d..0e7ce3a6c 100644 --- a/khal/ui/calendarwidget.py +++ b/khal/ui/calendarwidget.py @@ -242,7 +242,7 @@ def __init__(self, walker: 'CalendarWalker') -> None: self.on_press = walker.on_press self._marked: Optional[MarkType] = None self._pos_old: Optional[Tuple[int, int]] = None - self.body: 'CalendarWalker' + self.body: CalendarWalker super().__init__(walker) @property