Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 18, 2024
1 parent 2b9102a commit b7a0dc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/texted/_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 2 additions & 4 deletions src/texted/_single_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit b7a0dc2

Please sign in to comment.