Skip to content

Commit d427702

Browse files
committed
Fix mypy issues
1 parent 83d3ccd commit d427702

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
- run: pip install flake8-import-order
1717
- run: pip install mypy
1818
- run: flake8 facefusion_api
19-
- run: mypy facefusion_api
19+
- run: mypy facefusion_api --explicit-package-bases

facefusion_api/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def process(source_image : Tensor, target_image : Tensor, api_token : str, face_
5454
return (output_tensor,)
5555

5656
@staticmethod
57-
def swap_face(source_tensor : Tensor, target_tensor, api_token : str, face_swapper_model : FaceSwapperModel) -> Tensor:
57+
def swap_face(source_tensor : Tensor, target_tensor : Tensor, api_token : str, face_swapper_model : FaceSwapperModel) -> Tensor:
5858
source_buffer : BytesIO = tensor_to_bytesio(source_tensor, mime_type = 'image/webp')
5959
target_buffer : BytesIO = tensor_to_bytesio(target_tensor, mime_type = 'image/webp')
6060

facefusion_api/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from typing import Any, Dict, Literal, Type, TypeAlias
1+
from typing import Any, Dict, Literal, TypeAlias
22

33
NodeInputTypes : TypeAlias = Dict[str, Any]
4-
NodeClassMapping : TypeAlias = Dict[str, Type]
4+
NodeClassMapping : TypeAlias = Dict[str, Any]
55
NodeDisplayNameMapping : TypeAlias = Dict[str, str]
66

77
Image : TypeAlias = Any

0 commit comments

Comments
 (0)