Skip to content

Finding

Base classes

Name Children Inherits
BaseModel
pydantic.main
!!! abstract "Usage Documentation"

⋔ Inheritance diagram

graph TD
  3731826948["models.Finding"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3879467795 --> 3731826948
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseModel

A single problem (or noteworthy fact) found by a static or render check.

Source code in src/framesheet/models.py
class Finding(BaseModel):
    """A single problem (or noteworthy fact) found by a static or render check."""

    severity: Severity
    code: str
    """Stable, kebab-case identifier, e.g. ``parked-at-origin``."""
    message: str
    check: Literal["static", "render"]
    element: str | None = None
    """Human-readable element label such as ``circle#dot`` or ``text[2] "Hello"``."""
    times: list[float] | None = None
    """Sample times (seconds) at which the problem was observed."""

code instance-attribute

code: str

Stable, kebab-case identifier, e.g. parked-at-origin.

element class-attribute instance-attribute

element: str | None = None

Human-readable element label such as circle#dot or text[2] "Hello".

times class-attribute instance-attribute

times: list[float] | None = None

Sample times (seconds) at which the problem was observed.

:fa-brands-github: Show source on GitHub