Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

921 B
Raw Blame
"""Signal taxonomy and value types that other products pass to and receive from signals."""

from typing import TYPE_CHECKING

from products.signals.backend.artefact_attribution import ArtefactAttribution
from products.signals.backend.enums import ReportPriority, SignalSourceProduct, SignalSourceType

if TYPE_CHECKING:
    from products.signals.backend.contracts import SignalRemediation

__all__ = [
    "ArtefactAttribution",
    "ReportPriority",
    "SignalRemediation",
    "SignalSourceProduct",
    "SignalSourceType",
]


def __getattr__(name: str) -> type["SignalRemediation"]:
    if name != "SignalRemediation":
        raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

    from products.signals.backend.contracts import (
        SignalRemediation,  # noqa: PLC0415 - keeps payload schemas off Django startup
    )

    globals()[name] = SignalRemediation
    return SignalRemediation