mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-12 12:37:01 +00:00
Separate ComfyNodeV3 into an internal base class and one that only has the functions defined that a developer cares about overriding, reference ComfyNodeInternal in execution.py/server.py instead of ComfyNodeV3 to make the code not bound to a particular version of v3 schema (once placed on api)
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
class ComfyNodeInternal:
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
class ComfyNodeInternal(ABC):
|
||||
"""Class that all V3-based APIs inherit from for ComfyNode.
|
||||
|
||||
This is intended to only be referenced within execution.py, as it has to handle all V3 APIs going forward."""
|
||||
...
|
||||
|
||||
@classmethod
|
||||
@abstractmethod
|
||||
def GET_NODE_INFO_V1(cls):
|
||||
...
|
||||
|
Reference in New Issue
Block a user