Skip to content

Location

Source code in docs_src/capo_codecommit/types/location.py
class Location(TypedDict, closed=True):
    file_path: NotRequired["capo_codecommit.types.path.Path"]
    """<p>The name of the file being compared, including its extension and subdirectory, if any.</p>"""
    file_position: NotRequired["capo_codecommit.types.position.Position"]
    """<p>The position of a change in a compared file, in line number format.</p>"""
    relative_file_version: NotRequired[
        "capo_codecommit.types.relative_file_version_enum.RelativeFileVersionEnum"
    ]
    """<p>In a comparison of commits or a pull request, whether the change is in the before or after of that comparison.</p>"""

file_path instance-attribute

file_path: NotRequired[Path]

The name of the file being compared, including its extension and subdirectory, if any.

file_position instance-attribute

file_position: NotRequired[Position]

The position of a change in a compared file, in line number format.

relative_file_version instance-attribute

relative_file_version: NotRequired[RelativeFileVersionEnum]

In a comparison of commits or a pull request, whether the change is in the before or after of that comparison.