From f57bc30c5a92a1f2dcd45f6e8bc7812c00ae143b Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Fri, 10 Oct 2025 09:48:22 +0200 Subject: [PATCH] persist/writeability: rename non_writeable to readonly --- pkgs/clan-cli/clan_lib/persist/write_rules.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/clan-cli/clan_lib/persist/write_rules.py b/pkgs/clan-cli/clan_lib/persist/write_rules.py index 67307fe91..9a61a8e93 100644 --- a/pkgs/clan-cli/clan_lib/persist/write_rules.py +++ b/pkgs/clan-cli/clan_lib/persist/write_rules.py @@ -100,7 +100,7 @@ def _determine_writeability_recursive( persisted: dict[str, Any], current_path: PathTuple = (), inherited_priority: int | None = None, - parent_non_writeable: bool = False, + parent_redonly: bool = False, results: WriteMap | None = None, ) -> WriteMap: """Recursively determine writeability for all paths in the priority structure. @@ -125,7 +125,7 @@ def _determine_writeability_recursive( # Check if this should be non-writeable due to inheritance force_non_writeable = should_inherit_non_writeable( - effective_priority, parent_non_writeable + effective_priority, parent_redonly ) if force_non_writeable: @@ -138,7 +138,7 @@ def _determine_writeability_recursive( {}, # Doesn't matter since all children will be non-writeable path, effective_priority, - parent_non_writeable=True, + parent_redonly=True, results=results, ) else: @@ -163,7 +163,7 @@ def _determine_writeability_recursive( persisted.get(key, {}), path, effective_priority, - parent_non_writeable=False, + parent_redonly=False, results=results, )