Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Jan 8, 2025
1 parent da9ee16 commit 46c7fb8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/fake_bpy_module/transformer/data_type_refiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,10 @@ def _get_refined_data_type_internal(
variable_kind: str, additional_info: dict[str, Any] | None = None
) -> list[DataTypeNode]:

dtype_str = dtype_str.strip()
dtype_str = dtype_str.replace("\n", "")
dtype_str_org = dtype_str.strip()
dtype_str = dtype_str_org.replace("\n", " ")
if dtype_str != dtype_str_org:
print(f"@@@ {dtype_str_org} - {dtype_str}")

dtype_strs_splited = split_string_by_bar(dtype_str)
if len(dtype_strs_splited) == 0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,13 @@
data_multiple_lines
<description>
<data-type-list>
<data-type>
<data-type option="never none">
type[
<class-ref>
module_1.ClassA
| float |
|
float
|
<class-ref>
module_2.ClassB
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

:type: Callable[[float, int], tuple[float, int]]

.. data:: data_multiple_lines
.. data:: data_multiple_line

:type: type[
:class:`ClassA` | float |
Expand Down

0 comments on commit 46c7fb8

Please sign in to comment.