diff --git a/src/fake_bpy_module/transformer/data_type_refiner.py b/src/fake_bpy_module/transformer/data_type_refiner.py index 85d46150..e0689c5e 100644 --- a/src/fake_bpy_module/transformer/data_type_refiner.py +++ b/src/fake_bpy_module/transformer/data_type_refiner.py @@ -359,8 +359,8 @@ def _get_refined_data_type_fast( # noqa: C901, PLR0911, PLR0912 if m := REGEX_MATCH_DATA_TYPE_FLOAT_MULTI_DIMENSIONAL_ARRAY_OF.match( dtype_str): tuple_elems = [ - f"tuple[{', '.join(['float'] * int(m.group(1)))}]" - ] * int(m.group(2)) + f"tuple[{', '.join(['float'] * int(m.group(2)))}]" + ] * int(m.group(1)) return [ make_data_type_node("list[list[float]]"), make_data_type_node(f"tuple[{', '.join(tuple_elems)}]")