From ece82f080e2d99f52822417127f15499724134ad Mon Sep 17 00:00:00 2001 From: nutti Date: Sun, 29 Sep 2024 19:34:10 +0900 Subject: [PATCH] WIP --- src/fake_bpy_module/transformer/bpy_module_tweaker.py | 2 +- .../expect/rebase_bpy_types_class_base_class_transformed.xml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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)