From e36c09419a83ae318960827d3d17fba5dd2c9e00 Mon Sep 17 00:00:00 2001 From: nutti Date: Wed, 8 Jan 2025 21:03:09 +0900 Subject: [PATCH] Fix: Failed to refine data type 'type[...]' (#329) --- src/fake_bpy_module/transformer/data_type_refiner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fake_bpy_module/transformer/data_type_refiner.py b/src/fake_bpy_module/transformer/data_type_refiner.py index 03984d0c..1240600d 100644 --- a/src/fake_bpy_module/transformer/data_type_refiner.py +++ b/src/fake_bpy_module/transformer/data_type_refiner.py @@ -85,7 +85,7 @@ _REGEX_DATA_TYPE_OPTION_END_WITH_NONE = re.compile(r"or None$") _REGEX_DATA_TYPE_OPTION_OPTIONAL = re.compile(r"(^|^An |\()[oO]ptional(\s|\))") _REGEX_DATA_TYPE_STARTS_WITH_COLLECTION = re.compile(r"^(list|tuple|dict)") -_REGEX_DATA_TYPE_MODIFIER_TYPES = re.compile(r"^(Sequence|Callable|list|dict|tuple)?\[(.+)\]$") # noqa: E501 +_REGEX_DATA_TYPE_MODIFIER_TYPES = re.compile(r"^(Sequence|Callable|list|dict|tuple|type)?\[(.+)\]$") # noqa: E501 REGEX_SPLIT_OR = re.compile(r" \| | or |,")