from diceplayer.config import PlayerConfig import yaml def read_input(infile) -> PlayerConfig: with open(infile, "r") as f: values = yaml.safe_load(f) return PlayerConfig.model_validate(values["diceplayer"])