in2lambda.defaults.fillΒΆ
- in2lambda.defaults.fill(obj: Any, section: str, response_type: str | None = None) None[source]ΒΆ
Sets each of an objectβs unset fields to its default.
- Parameters:
obj β A dataclass instance.
section β Its table in the defaults.
response_type β For a response area, its type, whose own table comes first.
- Raises:
TypeError β A field has no default, or the defaults give it a value of the wrong type.