diff --git a/src/fake_bpy_module/transformer/bpy_module_tweaker.py b/src/fake_bpy_module/transformer/bpy_module_tweaker.py index f0a907b0..aec7fefe 100644 --- a/src/fake_bpy_module/transformer/bpy_module_tweaker.py +++ b/src/fake_bpy_module/transformer/bpy_module_tweaker.py @@ -155,7 +155,7 @@ def _rebase_bpy_types_class_base_class( dtype_str = dtype_node.astext() if m := re.match( r"^`([a-zA-Z0-9]+)` `bpy_prop_collection` of `" - r"([a-zA-Z0-9]+)`(, \(readonly\)).$", dtype_str): + r"([a-zA-Z0-9]+)`(, \(readonly\))*$", dtype_str): parent_to_child[m.group(1)] = m.group(2) for parent, child in parent_to_child.items(): diff --git a/tests/python/fake_bpy_module_test/fake_bpy_module_test/transformer_test_data/bpy_module_tweaker/expect/rebase_bpy_types_class_base_class_transformed.xml b/tests/python/fake_bpy_module_test/fake_bpy_module_test/transformer_test_data/bpy_module_tweaker/expect/rebase_bpy_types_class_base_class_transformed.xml index 2dbee7cf..60ebdb8d 100644 --- a/tests/python/fake_bpy_module_test/fake_bpy_module_test/transformer_test_data/bpy_module_tweaker/expect/rebase_bpy_types_class_base_class_transformed.xml +++ b/tests/python/fake_bpy_module_test/fake_bpy_module_test/transformer_test_data/bpy_module_tweaker/expect/rebase_bpy_types_class_base_class_transformed.xml @@ -89,5 +89,4 @@ of Attribute2 - , (readonly)