Skip to content

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.