Skip to content

sgn.frames

Frame classes for the SGN framework.

IterFrame dataclass

Bases: Frame

A frame whose data attribute is an iterable.

Parameters:

Name Type Description Default
data Iterable[Any]

Iterable, the data to store in the frame

list()
Source code in sgn/frames.py
 9
10
11
12
13
14
15
16
17
18
@dataclass
class IterFrame(Frame):
    """A frame whose data attribute is an iterable.

    Args:
        data:
            Iterable, the data to store in the frame
    """

    data: Iterable[Any] = field(default_factory=list)