• Mayank Mittal's avatar
    Adds reset for manager terms (#255) · 51f62922
    Mayank Mittal authored
    # Description
    
    Previously, while the manager classes supported "functional" class
    terms, they only implemented `__call__` attribute. However, more
    frequently, the class terms will keep some history in them which we
    would want to clear out.
    
    This MR introduces a `ManagerTerm` class for class terms which serves as
    a protocol for how manager terms that are classes should be implemented.
    The `ActionTerm` inherits from this `ManagerTerm`.
    
    ## Type of change
    
    - New feature (non-breaking change which adds functionality)
    
    ## Checklist
    
    - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
    `./orbit.sh --format`
    - [ ] I have made corresponding changes to the documentation
    - [x] My changes generate no new warnings
    - [x] I have added tests that prove my fix is effective or that my
    feature works
    - [x] I have updated the changelog and the corresponding version in the
    extension's `config/extension.toml` file
    - [x] I have added my name to the `CONTRIBUTORS.md` or my name already
    exists there
    51f62922
test_configclass.py 23 KB