kd.konfig.WithRef#
- class kauldron.konfig.WithRef[source]
Bases:
objectProtocol to better access lazy fields.
This only add the .ref property for better type-checking & auto-complete. This do not modify the object behavior.
- property ref: kauldron.konfig.ref_utils._SelfT
Lazy reference access.
Before:
cfg.get_ref('workdir')
After:
cfg.ref.workdir
- Raises:
RuntimeError – When used outside of a konfig.ConfigDict context.