Skip to content

FindingEvidence

Source code in docs_src/capo_continuum/types/finding_evidence.py
class FindingEvidence(TypedDict, closed=True):
    file: NotRequired["capo_continuum.types.finding_file_path.FindingFilePath"]
    """The file the evidence was found in."""
    line: NotRequired["int"]
    """The 1-indexed line, when known."""
    snippet: NotRequired["capo_continuum.types.finding_code_snippet.FindingCodeSnippet"]
    """The cited excerpt."""

file instance-attribute

file: NotRequired[FindingFilePath]

The file the evidence was found in.

line instance-attribute

line: NotRequired[int]

The 1-indexed line, when known.

snippet instance-attribute

snippet: NotRequired[FindingCodeSnippet]

The cited excerpt.