mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-07-28 00:36:32 +00:00
Merge PR #9068 from comfyanonymous/v3-definition-wip
V3 update - make schema imports available on non-latest API
This commit is contained in:
commit
b341c96386
@ -96,8 +96,8 @@ def comfytype(io_type: str, **kwargs):
|
|||||||
|
|
||||||
A ComfyType may have the following attributes:
|
A ComfyType may have the following attributes:
|
||||||
- Type = <type hint here>
|
- Type = <type hint here>
|
||||||
- class Input(InputV3): ...
|
- class Input(Input): ...
|
||||||
- class Output(OutputV3): ...
|
- class Output(Output): ...
|
||||||
'''
|
'''
|
||||||
def decorator(cls: T) -> T:
|
def decorator(cls: T) -> T:
|
||||||
if isinstance(cls, _ComfyType) or issubclass(cls, _ComfyType):
|
if isinstance(cls, _ComfyType) or issubclass(cls, _ComfyType):
|
||||||
@ -737,7 +737,7 @@ class MultiType:
|
|||||||
@property
|
@property
|
||||||
def io_types(self) -> list[type[Input]]:
|
def io_types(self) -> list[type[Input]]:
|
||||||
'''
|
'''
|
||||||
Returns list of InputV3 class types permitted.
|
Returns list of Input class types permitted.
|
||||||
'''
|
'''
|
||||||
io_types = []
|
io_types = []
|
||||||
for x in self._io_types:
|
for x in self._io_types:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
from comfy_api.latest import ComfyAPI_latest
|
from comfy_api.latest import ComfyAPI_latest
|
||||||
from typing import Type, TYPE_CHECKING
|
from typing import Type, TYPE_CHECKING
|
||||||
from comfy_api.internal.async_to_sync import create_sync_class
|
from comfy_api.internal.async_to_sync import create_sync_class
|
||||||
|
from comfy_api.latest import io, ui, resources #noqa: F401
|
||||||
|
|
||||||
class ComfyAPIAdapter_v0_0_2(ComfyAPI_latest):
|
class ComfyAPIAdapter_v0_0_2(ComfyAPI_latest):
|
||||||
VERSION = "0.0.2"
|
VERSION = "0.0.2"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user