Skip to content

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

Closed

Description

@NeejWeej

Is your feature request related to a problem? Please describe.
ModelRegistry objects do not have __setitem__ defined, but when this is attempted, an error should be raised that mentions the recommended way to modify the registry, namely using the add api here: https://github.com/Point72/ccflow/blob/main/ccflow/base.py#L409

Activity

  1. changed the title [-]Direct users to `add` function on `ModelRegistry` objects when `__setitem__` is invoked[/-] [+]Raise error directing users to `add` function on `ModelRegistry` objects when `__setitem__` is invoked[/+] on Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions