Skip to content

Asset warning

AssetWarning dataclass #

AssetWarning(item: T, message: str)

Bases: Generic[T]

A non-fatal advisory the backend attached to an otherwise-successful upload.

Mirrors :class:FailedUpload for the success path: the upload went through, but the backend flagged something the caller should know about (e.g. a video longer than the annotator-solvable limit). Frozen so it can be de-duplicated in a set before reporting.

Attributes:

Name Type Description
item T

The asset (file path or URL) the warning is about.

message str

The backend-provided advisory text, surfaced verbatim.