hyperstate.load
- hyperstate.load(cls: Type[T], file: str | Path | None, overrides: List[str] | None = None) T
Instantiates a data class from a Rusty Object Notation (RON) file.
- Parameters:
cls – The type of the dataclass to load.
file – Path to the file to load. If None, the dataclass is instantiated with its default values.
overrides – List of overrides in the form “path.to.field=value”.