Pair it with PyYAML or ruamel.yaml: load your file, then build typed objects with the generated from_dict(). Each mapping becomes a dataclass with type hints; name: Ada / age: 36 gives name: str and age: int.
from_dict()
name: Ada
age: 36
name: str
age: int