From 8b1428cd01abe7ca97d29ed527faccee251720b7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 6 Apr 2024 16:48:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- core/callbacks.py | 5 +---- core/core-agnostic.py | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/core/callbacks.py b/core/callbacks.py index 6bc1bc2..5887014 100644 --- a/core/callbacks.py +++ b/core/callbacks.py @@ -5,7 +5,7 @@ class CallbackState: last_mode: ClassVar[Optional[str]] = None - + # We have to keep track of the last title so we don't repeat it # since sometimes Talon triggers a "title switch" when # the title actually hasn't changed, i.e. when a text file is saved @@ -38,9 +38,6 @@ def on_app_switch(app): actions.user.echo_context() - - - def on_title_switch(win): if not actions.user.echo_context_enabled(): return diff --git a/core/core-agnostic.py b/core/core-agnostic.py index bac01e1..01f4eea 100644 --- a/core/core-agnostic.py +++ b/core/core-agnostic.py @@ -28,7 +28,6 @@ def initialize_settings(): app.register("ready", initialize_settings) - @mod.action_class class Actions: def set_cancel_callback(callback: Callable):