Fixed issues with mypy
This commit is contained in:
parent
0377c6282a
commit
16beb10a54
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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="-="):
|
||||||
|
|
Loading…
Reference in a new issue