Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Dec 29, 2024
1 parent 4cfa3c9 commit 8e8417a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/fake_bpy_module/transformer/data_type_refiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ def _get_refined_data_type_fast( # noqa: C901, PLR0911, PLR0912
if dtype_str.startswith("`AnyType`"):
return [make_data_type_node("typing.Any")]

if dtype_str == "None":
return [make_data_type_node("None")]

if dtype_str in ("any", "Any", "Any type."):
return [make_data_type_node("typing.Any")]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
int
,
<class-ref>
ClassA
module_1.ClassA
],
None
]
Expand Down

0 comments on commit 8e8417a

Please sign in to comment.