Abstracted out NodeOutput into _NodeOutputInternal in execution.py

This commit is contained in:
Jedrzej Kosinski
2025-07-24 16:58:25 -07:00
parent d3a62a440f
commit 44afeab124
3 changed files with 11 additions and 4 deletions

View File

@@ -36,6 +36,13 @@ class _ComfyNodeInternal:
...
class _NodeOutputInternal:
"""Class that all V3-based APIs inherit from for NodeOutput.
This is intended to only be referenced within execution.py, as it has to handle all V3 APIs going forward."""
...
def as_pruned_dict(dataclass_obj):
'''Return dict of dataclass object with pruned None values.'''
return prune_dict(asdict(dataclass_obj))