Skip to content

Commit

Permalink
Fix: Remove "never none" for "readonly" properties (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrej730 authored Feb 22, 2025
1 parent 0bc75b5 commit 5678019
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/fake_bpy_module/transformer/data_type_refiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,10 +606,6 @@ def may_have_rna_based_options(module_name: str) -> bool:
f"{dtype_str} -> {stripped}")
dtype_str = stripped

# If readonly is specified, we should add never none as well.
if "readonly" in option_results:
option_results.append("never none")

option_results = sorted(set(option_results))

# Active object can accept None.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
function_1 arg_readonly description
<default-value>
<data-type-list>
<data-type option="never none,readonly">
<data-type option="readonly">
int
<argument argument_type="arg">
<name>
Expand Down

0 comments on commit 5678019

Please sign in to comment.