Skip to content

Commit

Permalink
Fix: Failed to refine data type 'type[...]' (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Jan 8, 2025
1 parent 86856d3 commit e36c094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fake_bpy_module/transformer/data_type_refiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 |,")

Expand Down

0 comments on commit e36c094

Please sign in to comment.