You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class VideoFrameReference(
timestamp: VideoTimestampLike,
*,
video_reference: EntityPathLike | None = None
)
Create a new instance of the VideoFrameReference archetype.
Parameters
timestamp
References the closest video frame to this timestamp.
Note that this uses the closest video frame instead of the latest at this timestamp in order to be more forgiving of rounding errors for inprecise timestamp types.
I would recommend we disallow casting from int on VideoTimestampLike and add optional kwargs such as:
However, VideoTimestampLike is defined as VideoTimestampLike = Union[VideoTimestamp, int].
I think thius makes sense for VideoTimestampArrayLike because we want integer arrays to be easily convertible to timestamps (think send_columns!).
I'd rather not make this asymmetrical. Also, tightening the type is sort-of a breaking change, thus shouldn't go into a patch..?
The default signature doesn't make it clear:
I would recommend we disallow casting from
int
onVideoTimestampLike
and add optional kwargs such as:The text was updated successfully, but these errors were encountered: