Skip to content

Commit

Permalink
Fix: BMFaceSeq.new does not accept iterable object
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Nov 5, 2023
1 parent 62b51ac commit 0775eba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fake_bpy_module/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"listtuple", "listcallable",
"Generic",
"typing.Iterator",
"typing.Iterable",
"typing.Callable",
"typing.Any",
"typing.Sequence",
Expand Down Expand Up @@ -77,6 +78,7 @@
"tuple": "typing.Tuple",
"Generic": "typing.Generic",
"typing.Iterator": "typing.Iterator",
"typing.Iterable": "typing.Iterable",
"typing.Callable": "typing.Callable",
"typing.Sequence": "typing.Sequence",
"typing.Any": "typing.Any",
Expand Down Expand Up @@ -1619,7 +1621,7 @@ def _get_refined_data_type_fast(
s = self._parse_custom_data_type(
m.group(1), uniq_full_names, uniq_module_names, module_name)
if s:
return CustomDataType(s, ModifierDataType("typing.Sequence"))
return CustomDataType(s, ModifierDataType("typing.Iterable"))
# Ex: `bpy_prop_collection` of `ThemeStripColor`,
# (readonly, never None)
m = re.match(
Expand Down

0 comments on commit 0775eba

Please sign in to comment.