Use a decorator for callbacks

This commit is contained in:
Moishe Lettvin
2024-01-06 14:09:28 -05:00
parent 7f51c0c9b2
commit b5c7e30efa
4 changed files with 36 additions and 40 deletions

View File

@@ -11,4 +11,4 @@ class FrameType(Enum):
@dataclass(frozen=True)
class OutputQueueFrame:
frame_type: FrameType
frame_data: bytes
frame_data: bytes | None