Skip to content

StructuredPatchHunk

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  264870571["output_types.StructuredPatchHunk"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 264870571
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

A single hunk in a structured patch.

Source code in src/clawd_code_sdk/models/output_types.py
class StructuredPatchHunk(TypedDict):
    """A single hunk in a structured patch."""

    oldStart: int
    oldLines: int
    newStart: int
    newLines: int
    lines: list[str]
    """Diff lines prefixed with ``' '`` (context), ``'+'`` (added), or ``'-'`` (removed)."""

lines instance-attribute

lines: list[str]

Diff lines prefixed with ' ' (context), '+' (added), or '-' (removed).

:fa-brands-github: Show source on GitHub