Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Dec 29, 2024
1 parent 5f353ed commit 4cfa3c9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/fake_bpy_module/transformer/data_type_refiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,10 @@ def _get_refined_data_type_splited(

# Handle Python typing syntax.
if m := _REGEX_DATA_TYPE_MODIFIER_TYPES.match(dtype_str):
if len(m.groups()) == 2:
modifier = m.group(1)
elements = split_string_by_comma(m.group(2), False)
elif len(m.groups()) == 1:
modifier = m.group(1)
if modifier is None:
modifier = ""
elements = split_string_by_comma(m.group(1), False)
elements = split_string_by_comma(m.group(2), False)
elm_dtype_nodes: list[list[DataTypeNode]] = []
for elm in elements:
dtype_nodes = self._get_refined_data_type_internal(
Expand Down

0 comments on commit 4cfa3c9

Please sign in to comment.