Skip to content

Commit 82af0a3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1d8dfec commit 82af0a3

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/texted/_edit.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,11 @@ def _splitlines(text: str):
6868

6969

7070
@overload
71-
def edit(text: str, edition: Edition) -> str:
72-
...
71+
def edit(text: str, edition: Edition) -> str: ...
7372

7473

7574
@overload
76-
def edit(text: str, select: Selection, edition: Edition) -> str:
77-
...
75+
def edit(text: str, select: Selection, edition: Edition) -> str: ...
7876

7977

8078
def edit(text, select, edition=None):

src/texted/_single_selection.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@
1919

2020
class Selection(ABC):
2121
@abstractmethod
22-
def _select(self, lines: list[str]) -> Iterator[slice]:
23-
...
22+
def _select(self, lines: list[str]) -> Iterator[slice]: ...
2423

2524
@abstractmethod
26-
def __rshift__(self: T, op: _Select) -> T:
27-
...
25+
def __rshift__(self: T, op: _Select) -> T: ...
2826

2927
def enumerate(self, lines: list[str]) -> Iterator[tuple[int, str]]:
3028
"""Iterate over the selected lines"""

0 commit comments

Comments
 (0)