Skip to content

DiffChange

Source code in docs_src/capo_codecommit/types/diff_change.py
class DiffChange(TypedDict, closed=True):
    type: NotRequired["capo_codecommit.types.diff_change_type.DiffChangeType"]
    """<p>The type of change for this line. Possible values:</p> <ul> <li> <p> <code>CONTEXT</code> – Unchanged line included for surrounding context.</p> </li> <li> <p> <code>ADD</code> – Line added in the after blob.</p> </li> <li> <p> <code>DELETE</code> – Line removed from the before blob.</p> </li> </ul>"""
    before_line_number: NotRequired["capo_codecommit.types.line_number.LineNumber"]
    """<p>The 1-based line number in the before blob. This field is omitted for <code>ADD</code> lines.</p>"""
    after_line_number: NotRequired["capo_codecommit.types.line_number.LineNumber"]
    """<p>The 1-based line number in the after blob. This field is omitted for <code>DELETE</code> lines.</p>"""
    content: NotRequired["capo_codecommit.types.line_content.LineContent"]
    """<p>The text content of the line, without the trailing newline.</p>"""

after_line_number instance-attribute

after_line_number: NotRequired[LineNumber]

The 1-based line number in the after blob. This field is omitted for DELETE lines.

before_line_number instance-attribute

before_line_number: NotRequired[LineNumber]

The 1-based line number in the before blob. This field is omitted for ADD lines.

content instance-attribute

content: NotRequired[LineContent]

The text content of the line, without the trailing newline.

type instance-attribute

type: NotRequired[DiffChangeType]

The type of change for this line. Possible values:

  • CONTEXT – Unchanged line included for surrounding context.

  • ADD – Line added in the after blob.

  • DELETE – Line removed from the before blob.