• Mayank Mittal's avatar
    Adds support for class types in configclass (#92) · f9eca34c
    Mayank Mittal authored
    # Description
    
    This MR adds checks to the `dataclass` wrapper called `configclass` to extend its support for types.  This supports type hinting annotations such as `type`, `Type[Myclass]`, and `ClassVar[type]`.
    
    It also adds a method called `replace` to the configclass that calls the [`dataclasses.replace`](https://docs.python.org/3/library/dataclasses.html#dataclasses.replace) function. This has been added for the convenience of users.
    
    ## Type of change
    
    - Bug fix (non-breaking change which fixes an issue)
    - 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`
    - [x] 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
    f9eca34c
Name
Last commit
Last update
..
actuators Loading commit data...
asset_loader Loading commit data...
command_generators Loading commit data...
compat Loading commit data...
controllers Loading commit data...
devices Loading commit data...
managers Loading commit data...
markers Loading commit data...
objects Loading commit data...
robots Loading commit data...
sensors Loading commit data...
terrains Loading commit data...
utils Loading commit data...
__init__.py Loading commit data...
app.py Loading commit data...