Skip to content

Improve ModelRegistry item assignment error - #254

Open
russlan23 wants to merge 1 commit into
Point72:mainfrom
russlan23:agent/model-registry-setitem-162
Open

Improve ModelRegistry item assignment error#254
russlan23 wants to merge 1 commit into
Point72:mainfrom
russlan23:agent/model-registry-setitem-162

Conversation

@russlan23

Copy link
Copy Markdown

Description

Closes #162.

Adds an explicit ModelRegistry.__setitem__ error that directs users to the controlled add API. The regression verifies the message and confirms that a failed assignment leaves the registry unchanged.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup
  • CI / build configuration
  • Other (describe below)

Validation

  • python -m pytest -q ccflow/tests/test_base_registry.py - 43 passed
  • python -m ruff check ccflow/base.py ccflow/tests/test_base_registry.py - passed
  • python -m ruff format --check ccflow/base.py ccflow/tests/test_base_registry.py - passed
  • git diff --check - passed

A clean full-suite attempt could not install the complete optional development extra because the package download timed out; the repository CI can provide the full declared matrix.

Checklist

  • Linting passes
  • Full make test passes locally
  • New tests added for new functionality
  • Documentation updated (not applicable)
  • Changelog / version bump (not applicable)

Signed-off-by: russlan23 <rrusslanjr@gmail.com>
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.

Raise error directing users to add function on ModelRegistry objects when __setitem__ is invoked

1 participant