Skip to content

Commit

Permalink
Fix: Failed to parse data type 'float multi-dimensional array of XXX …
Browse files Browse the repository at this point in the history
…* YYY items in ...' (#311)
  • Loading branch information
nutti committed Oct 30, 2024
1 parent 66b2b24 commit c456714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fake_bpy_module/transformer/data_type_refiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}]")
Expand Down

0 comments on commit c456714

Please sign in to comment.