diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a02720a9b..352907485 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: trailing-whitespace args: [--markdown-linebreak-ext=md] @@ -9,7 +9,7 @@ repos: - id: check-added-large-files - id: debug-statements - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.7.0 + rev: v1.14.1 hooks: - id: mypy additional_dependencies: @@ -20,12 +20,12 @@ repos: - types-setuptools - types-python-dateutil - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.1.5' + rev: 'v0.9.4' hooks: - id: ruff args: ["--fix"] - repo: https://github.com/netromdk/vermin - rev: v1.5.2 + rev: v1.6.0 hooks: - id: vermin args: ['-t=3.8-', '--violations'] diff --git a/khal/ui/__init__.py b/khal/ui/__init__.py index ab78d5cdf..d77718d30 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