diff --git a/src/fake_bpy_module/common.py b/src/fake_bpy_module/common.py index 3bda8706..33a01e37 100644 --- a/src/fake_bpy_module/common.py +++ b/src/fake_bpy_module/common.py @@ -1322,7 +1322,7 @@ def _build_metadata( # From this, we assumed non-bpy module. metadata.never_none = True - m = re.search(r"or None$", dtype_str) + m = re.search(r"or None)*$", dtype_str) if not m: return metadata, dtype_str