@config
Overview
The config
decorator is used to decorate a property in a Book class that defines default configuration values.
Syntax
Keyword Arguments
Argument
Type
Required
Description
name
str
Optional
Specifies the name of the configuration. If not provided, the function name or value from *args
is used.
default_value
Any
Optional
Specifies the default value for the configuration. If not provided, the default is None
.
Example
Last updated
Was this helpful?