Cosmetics on types

This commit is contained in:
henryruhs
2025-06-30 20:03:28 +02:00
parent 8e41f61671
commit 5464f4c3de
2 changed files with 5 additions and 6 deletions
+3 -3
View File
@@ -11,12 +11,12 @@ from comfy_api_nodes.apinode_utils import bytesio_to_image_tensor, tensor_to_byt
from httpx import Client as HttpClient, Headers
from torch import Tensor
from .types import FaceSwapperModel, NodeInputTypes
from .types import FaceSwapperModel, InputTypes
class SwapFaceImage:
@classmethod
def INPUT_TYPES(s) -> NodeInputTypes:
def INPUT_TYPES(s) -> InputTypes:
return\
{
'required':
@@ -83,7 +83,7 @@ class SwapFaceImage:
class SwapFaceVideo:
@classmethod
def INPUT_TYPES(s) -> NodeInputTypes:
def INPUT_TYPES(s) -> InputTypes:
return\
{
'required':
+2 -3
View File
@@ -1,9 +1,8 @@
from typing import Any, Dict, Literal, TypeAlias
NodeInputTypes : TypeAlias = Dict[str, Any]
InputTypes : TypeAlias = Dict[str, Any]
NodeClassMapping : TypeAlias = Dict[str, Any]
NodeDisplayNameMapping : TypeAlias = Dict[str, str]
Image : TypeAlias = Any
FaceSwapperModel = Literal['hyperswap_1a_256', 'hyperswap_1b_256', 'hyperswap_1c_256']