mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
style: Format code with linter
This commit is contained in:
parent
97296f3169
commit
4893f78286
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,7 @@ from pathlib import Path
|
||||||
|
|
||||||
def restore_multiline(func):
|
def restore_multiline(func):
|
||||||
"""Decorator to restore multiline mode after function execution"""
|
"""Decorator to restore multiline mode after function execution"""
|
||||||
|
|
||||||
@functools.wraps(func)
|
@functools.wraps(func)
|
||||||
def wrapper(self, *args, **kwargs):
|
def wrapper(self, *args, **kwargs):
|
||||||
orig_multiline = self.multiline_mode
|
orig_multiline = self.multiline_mode
|
||||||
|
@ -23,8 +24,10 @@ def restore_multiline(func):
|
||||||
raise
|
raise
|
||||||
finally:
|
finally:
|
||||||
self.multiline_mode = orig_multiline
|
self.multiline_mode = orig_multiline
|
||||||
|
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
from prompt_toolkit.completion import Completer, Completion, ThreadedCompleter
|
from prompt_toolkit.completion import Completer, Completion, ThreadedCompleter
|
||||||
from prompt_toolkit.cursor_shapes import ModalCursorShapeConfig
|
from prompt_toolkit.cursor_shapes import ModalCursorShapeConfig
|
||||||
from prompt_toolkit.enums import EditingMode
|
from prompt_toolkit.enums import EditingMode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue