Fixed issues with mypy
Some checks failed
/ mypy (push) Successful in 18s
/ pylint (push) Successful in 13s
/ build-artifacts (push) Successful in 8s
/ lint-and-typing (push) Successful in 19s
/ release (push) Failing after 6s
/ publish-artifacts (push) Successful in 8s

This commit is contained in:
Firq 2024-10-11 01:06:58 +02:00
parent 0377c6282a
commit 16beb10a54
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,3 @@
import pathlib
from typing import Annotated, List, NotRequired, Tuple, TypedDict from typing import Annotated, List, NotRequired, Tuple, TypedDict
import requests import requests

View file

@ -18,7 +18,7 @@ def compose(input_id: int, filters: Optional[List[str]] = None):
else: else:
print(f"Processing manually uploaded charaId {input_id}") print(f"Processing manually uploaded charaId {input_id}")
savefolder = Paths.OUTPUT / "manual" savefolder = Paths.OUTPUT / "manual"
chara_ids = [input_id] chara_ids = [str(input_id)]
if not savefolder.is_dir(): if not savefolder.is_dir():
savefolder.mkdir(parents=True, exist_ok=True) savefolder.mkdir(parents=True, exist_ok=True)
@ -54,7 +54,8 @@ def process_sprite(images_folder: pathlib.Path, configdata: SpritesheetData, out
if i.name == "0.png" and 256 < configdata["facesize"][1]: if i.name == "0.png" and 256 < configdata["facesize"][1]:
continue continue
elif i.name == "0.png":
if i.name == "0.png":
initial_row = rowcount - 1 initial_row = rowcount - 1
for x, y in tqdm_itertools.product(range(initial_row, rowcount), range(0, colcount), ascii="-="): for x, y in tqdm_itertools.product(range(initial_row, rowcount), range(0, colcount), ascii="-="):