From 12806e424f350bed079ee26f988662cf39fb290f Mon Sep 17 00:00:00 2001 From: ktro2828 Date: Thu, 2 Oct 2025 12:25:39 +0900 Subject: [PATCH] style: add typing Signed-off-by: ktro2828 --- t4_devkit/schema/tables/autolabel_metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t4_devkit/schema/tables/autolabel_metadata.py b/t4_devkit/schema/tables/autolabel_metadata.py index 26bc247..ccfa359 100644 --- a/t4_devkit/schema/tables/autolabel_metadata.py +++ b/t4_devkit/schema/tables/autolabel_metadata.py @@ -31,11 +31,11 @@ class AutolabelModel: ) @staticmethod - def to_autolabel_model(x) -> list[AutolabelModel] | None: + def to_autolabel_model(x: list[dict | AutolabelModel] | None) -> list[AutolabelModel] | None: """Convert input to a list of AutolabelModel instances. Args: - x: Input to convert. Can be None, a list of dicts, or a list of AutolabelModel instances. + x (list[dict | AutolabelModel] | None): Input to convert. Can be None, a list of dicts, or a list of AutolabelModel instances. Returns: list[AutolabelModel] | None: Converted list of AutolabelModel instances or None.