From 7d710727a9754622d3aaab5f0481c910c073a742 Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Wed, 23 Jul 2025 20:52:05 -0700 Subject: [PATCH] Begin porting io, ui, and resources to be compatible with versioned Core API --- comfy_api/v3/{io.py => _io.py} | 4 +++- comfy_api/v3/{resources.py => _resources.py} | 0 comfy_api/v3/{ui.py => _ui.py} | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename comfy_api/v3/{io.py => _io.py} (99%) rename comfy_api/v3/{resources.py => _resources.py} (100%) rename comfy_api/v3/{ui.py => _ui.py} (100%) diff --git a/comfy_api/v3/io.py b/comfy_api/v3/_io.py similarity index 99% rename from comfy_api/v3/io.py rename to comfy_api/v3/_io.py index a045123c7..ba6fe3c3a 100644 --- a/comfy_api/v3/io.py +++ b/comfy_api/v3/_io.py @@ -29,7 +29,6 @@ from comfy_execution.graph import ExecutionBlocker # from comfy_extras.nodes_images import SVG as SVG_ # NOTE: needs to be moved before can be imported due to circular reference - class FolderType(str, Enum): input = "input" output = "output" @@ -1502,3 +1501,6 @@ class _UIOutput(ABC): @abstractmethod def as_dict(self) -> dict: ... + +class IO: + FolderType = FolderType diff --git a/comfy_api/v3/resources.py b/comfy_api/v3/_resources.py similarity index 100% rename from comfy_api/v3/resources.py rename to comfy_api/v3/_resources.py diff --git a/comfy_api/v3/ui.py b/comfy_api/v3/_ui.py similarity index 100% rename from comfy_api/v3/ui.py rename to comfy_api/v3/_ui.py