From 16beb10a54560f1dbdb1b307b4ed16fb0103160c Mon Sep 17 00:00:00 2001 From: Firq Date: Fri, 11 Oct 2024 01:06:58 +0200 Subject: [PATCH] Fixed issues with mypy --- atlasimagecomposer/backend/atlas.py | 1 - atlasimagecomposer/backend/compose.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/atlasimagecomposer/backend/atlas.py b/atlasimagecomposer/backend/atlas.py index 40e9722..10ff739 100644 --- a/atlasimagecomposer/backend/atlas.py +++ b/atlasimagecomposer/backend/atlas.py @@ -1,4 +1,3 @@ -import pathlib from typing import Annotated, List, NotRequired, Tuple, TypedDict import requests diff --git a/atlasimagecomposer/backend/compose.py b/atlasimagecomposer/backend/compose.py index 5f2efe2..a896310 100644 --- a/atlasimagecomposer/backend/compose.py +++ b/atlasimagecomposer/backend/compose.py @@ -18,7 +18,7 @@ def compose(input_id: int, filters: Optional[List[str]] = None): else: print(f"Processing manually uploaded charaId {input_id}") savefolder = Paths.OUTPUT / "manual" - chara_ids = [input_id] + chara_ids = [str(input_id)] if not savefolder.is_dir(): 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]: continue - elif i.name == "0.png": + + if i.name == "0.png": initial_row = rowcount - 1 for x, y in tqdm_itertools.product(range(initial_row, rowcount), range(0, colcount), ascii="-="):