Skip to content
New: Star-import, signal unraveling, Python 3.12 support, and more

#
decorators module

Class decorators for base classes.

## attach_arg_properties function

    attach_arg_properties(
        cls
    )

Class decorator to attach properties for arguments defined in the argument config of a BasePreparer subclass.

## override_arg_config function

    override_arg_config(
        config,
        merge_configs=True
    )

Class decorator to override the argument config of a class subclassing BasePreparer.

Instead of overriding `_arg_config` class attribute, you can pass `config` directly to this decorator.

Disable `merge_configs` to not merge, which will effectively disable field inheritance.

#### Cookie consent

We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. With your consent, you're helping us to make our documentation better.

- Google Analytics
- GitHub

Manage settings