mirror of
https://github.com/facefusion/facefusion-comfyui.git
synced 2026-07-25 07:40:51 +02:00
Fix mypy issues
This commit is contained in:
@@ -16,4 +16,4 @@ jobs:
|
||||
- run: pip install flake8-import-order
|
||||
- run: pip install mypy
|
||||
- run: flake8 facefusion_api
|
||||
- run: mypy facefusion_api
|
||||
- run: mypy facefusion_api --explicit-package-bases
|
||||
|
||||
@@ -54,7 +54,7 @@ class SwapFaceImage:
|
||||
return (output_tensor,)
|
||||
|
||||
@staticmethod
|
||||
def swap_face(source_tensor : Tensor, target_tensor, api_token : str, face_swapper_model : FaceSwapperModel) -> Tensor:
|
||||
def swap_face(source_tensor : Tensor, target_tensor : Tensor, api_token : str, face_swapper_model : FaceSwapperModel) -> Tensor:
|
||||
source_buffer : BytesIO = tensor_to_bytesio(source_tensor, mime_type = 'image/webp')
|
||||
target_buffer : BytesIO = tensor_to_bytesio(target_tensor, mime_type = 'image/webp')
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from typing import Any, Dict, Literal, Type, TypeAlias
|
||||
from typing import Any, Dict, Literal, TypeAlias
|
||||
|
||||
NodeInputTypes : TypeAlias = Dict[str, Any]
|
||||
NodeClassMapping : TypeAlias = Dict[str, Type]
|
||||
NodeClassMapping : TypeAlias = Dict[str, Any]
|
||||
NodeDisplayNameMapping : TypeAlias = Dict[str, str]
|
||||
|
||||
Image : TypeAlias = Any
|
||||
|
||||
Reference in New Issue
Block a user