From b7a0dc2ce2e327c06114c14bfb18b898b5226822 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:06:45 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/texted/_edit.py | 6 ++---- src/texted/_single_selection.py | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/texted/_edit.py b/src/texted/_edit.py index cd90dea..e186475 100644 --- a/src/texted/_edit.py +++ b/src/texted/_edit.py @@ -68,13 +68,11 @@ def _splitlines(text: str): @overload -def edit(text: str, edition: Edition) -> str: - ... +def edit(text: str, edition: Edition) -> str: ... @overload -def edit(text: str, select: Selection, edition: Edition) -> str: - ... +def edit(text: str, select: Selection, edition: Edition) -> str: ... def edit(text, select, edition=None): diff --git a/src/texted/_single_selection.py b/src/texted/_single_selection.py index 98724f3..1eef0aa 100644 --- a/src/texted/_single_selection.py +++ b/src/texted/_single_selection.py @@ -19,12 +19,10 @@ class Selection(ABC): @abstractmethod - def _select(self, lines: list[str]) -> Iterator[slice]: - ... + def _select(self, lines: list[str]) -> Iterator[slice]: ... @abstractmethod - def __rshift__(self: T, op: _Select) -> T: - ... + def __rshift__(self: T, op: _Select) -> T: ... def enumerate(self, lines: list[str]) -> Iterator[tuple[int, str]]: """Iterate over the selected lines"""