Skip to content

Commit c928a23

Browse files
authored
style: add typing (#194)
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
1 parent b0077d3 commit c928a23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

t4_devkit/schema/tables/autolabel_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ class AutolabelModel:
3131
)
3232

3333
@staticmethod
34-
def to_autolabel_model(x) -> list[AutolabelModel] | None:
34+
def to_autolabel_model(x: list[dict | AutolabelModel] | None) -> list[AutolabelModel] | None:
3535
"""Convert input to a list of AutolabelModel instances.
3636
3737
Args:
38-
x: Input to convert. Can be None, a list of dicts, or a list of AutolabelModel instances.
38+
x (list[dict | AutolabelModel] | None): Input to convert. Can be None, a list of dicts, or a list of AutolabelModel instances.
3939
4040
Returns:
4141
list[AutolabelModel] | None: Converted list of AutolabelModel instances or None.

0 commit comments

Comments
 (0)