Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Sep 28, 2024
1 parent 68b3f5d commit 37dace1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fake_bpy_module/transformer/data_type_refiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@ def is_cls_attr_in_never_none_blacklist(

# If data type is bpy.types.Context, it will accept None.
if r.to_string() == "bpy.types.Context":
option_results.remove("never none")
while "never none" in option_results:
option_results.remove("never none")
option_results.append("accept none")

if variable_kind == 'CLS_ATTR':
Expand Down

0 comments on commit 37dace1

Please sign in to comment.