fix: Define EditResult after PatchAction to resolve flake8 error

This commit is contained in:
Paul Gauthier (aider) 2025-04-14 15:08:41 -07:00
parent 64f5d0d388
commit 861f51f6c3

View file

@ -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)