mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 14:20:49 +08:00
Add types for PreviewImageWithMetadataMessage
This commit is contained in:
parent
726804ca63
commit
1b7d04b2e7
@ -96,12 +96,13 @@ class ProgressStateMessage(TypedDict, total=True):
|
||||
prompt_id: str
|
||||
nodes: dict[str, ActiveNodeProgressState]
|
||||
|
||||
PreviewImageWithMetadataMessage = tuple[UnencodedPreviewImageMessage, PreviewImageMetadata]
|
||||
|
||||
ExecutedMessage = ExecutingMessage
|
||||
|
||||
SendSyncEvent = Union[Literal["status", "execution_error", "executing", "progress", "executed", "progress_state"], BinaryEventTypes, None]
|
||||
|
||||
SendSyncData = Union[ProgressStateMessage, StatusMessage, ExecutingMessage, DependencyExecutionErrorMessage, ExecutionErrorMessage, ExecutionInterruptedMessage, ProgressMessage, UnencodedPreviewImageMessage, tuple[PIL.Image.Image, PreviewImageMetadata], bytes, bytearray, str, None]
|
||||
SendSyncData = Union[ProgressStateMessage, StatusMessage, ExecutingMessage, DependencyExecutionErrorMessage, ExecutionErrorMessage, ExecutionInterruptedMessage, ProgressMessage, UnencodedPreviewImageMessage, PreviewImageWithMetadataMessage, bytes, bytearray, str, None]
|
||||
|
||||
|
||||
class SocketsMetadata(TypedDict, total=True):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user