Updatable¶
- class Updatable[source]¶
Bases:
ABC
Adds parameter updating functionality to a module.
- abstract defaultupdater(*includes: str, **kwargs) Updater [source]¶
Default updater for this object.
- Parameters:
*includes (str) – additional instance-specific parameters to include.
- Raises:
RuntimeError –
defaultupdater
must be implemented by the subclass.- Returns:
the default updater.
- Return type:
- property updatable: bool¶
If the module is updatable.
- Returns:
if the module is updatable.
- Return type:
- update(clear: bool = True, **kwargs) None [source]¶
Applies all accumulated updates.
- Parameters:
clear (bool, optional) – if accumulators should be cleared after updating. Defaults to
True
.