Typo fix in from_yaml: "isinstance"