mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
fix: Define EditResult after PatchAction to resolve flake8 error
This commit is contained in:
parent
64f5d0d388
commit
861f51f6c3
1 changed files with 4 additions and 2 deletions
|
@ -7,8 +7,6 @@ from ..dump import dump # noqa: F401
|
|||
from .base_coder import Coder
|
||||
from .patch_prompts import PatchPrompts
|
||||
|
||||
EditResult = Tuple[str, PatchAction]
|
||||
|
||||
|
||||
# --------------------------------------------------------------------------- #
|
||||
# Domain objects & Exceptions (Adapted from apply_patch.py)
|
||||
|
@ -41,6 +39,10 @@ class PatchAction:
|
|||
move_path: Optional[str] = None
|
||||
|
||||
|
||||
# Type alias for the return type of get_edits
|
||||
EditResult = Tuple[str, PatchAction]
|
||||
|
||||
|
||||
@dataclass
|
||||
class Patch:
|
||||
actions: Dict[str, PatchAction] = field(default_factory=dict)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue