From 606b8e18abfc06c79fa4c3e4e7a138a7841fb970 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:56:28 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_abbrevs.py | 4 ++-- xontrib/abbrevs.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_abbrevs.py b/tests/test_abbrevs.py index e9e5858..acbd7d7 100644 --- a/tests/test_abbrevs.py +++ b/tests/test_abbrevs.py @@ -26,8 +26,8 @@ def abbrevs_xontrib(monkeypatch, source_path): del sys.modules[spec.name] -ps_special_expand = ( - lambda buffer, word: "procs" if buffer.text.startswith(word) else word +ps_special_expand = lambda buffer, word: ( + "procs" if buffer.text.startswith(word) else word ) diff --git a/xontrib/abbrevs.py b/xontrib/abbrevs.py index e4c2ace..1b01fbc 100644 --- a/xontrib/abbrevs.py +++ b/xontrib/abbrevs.py @@ -13,8 +13,7 @@ if tp.TYPE_CHECKING: class AbbrCallType(tp.Protocol): - def __call__(self, word: str, buffer: Buffer) -> str: - ... + def __call__(self, word: str, buffer: Buffer) -> str: ... AbbrValType = tp.Union[str, AbbrCallType]