Skip to content

refactor: initialise the vocabulary memo in __init__, no getattr - #708

Merged
JarbasAl merged 1 commit into
OpenVoiceOS:devfrom
goldyfruit:refactor/vocabularies-memo-init
Oct 13, 2026
Merged

JarbasAl merged 1 commit into
OpenVoiceOS:devfrom
goldyfruit:refactor/vocabularies-memo-init

Conversation

@goldyfruit

Copy link
Copy Markdown
Contributor

Follow-up to #704, per review on related PRs: avoid defensive getattr for attributes that must exist.

SkillResources._vocabularies_memo was only created by the first _locale_vocabularies() call, so the read used getattr(self, "_vocabularies_memo", None). It is now set to None in __init__ and read directly. No behaviour change.

Tests: test_resource_files.py, test_resource_files_extended.py and test_resource_lookup_cache.py pass (72). The rest of the unit suite matches dev (13 local failures on both, from the host's inotify limit and one skill_launcher test).

🤖 Generated with Claude Code

SkillResources._vocabularies_memo was only created by the first
_locale_vocabularies() call, so the read guarded it with getattr. It is
now set to None in __init__ and read directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7b947cdf-39c0-483d-983f-c890d1dd6b1e
📥 Commits

Reviewing files that changed from the base of the PR and between ebd5bd0 and 4b27980.

📒 Files selected for processing (1)
  • ovos_workshop/resource_files.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@JarbasAl
JarbasAl merged commit 499b7cd into OpenVoiceOS:dev Oct 13, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants