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 Jul 1, 2024
1 parent fdd7218 commit 187bd85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_abbrevs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)


Expand Down
3 changes: 1 addition & 2 deletions xontrib/abbrevs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 187bd85

Please sign in to comment.