def _yatiml_savorize(cls, node: yatiml.Node) -> None: node.dashes_to_unders_in_keys() node.rename_attribute('type', 'typ')
def _yatiml_savorize(cls, node: yatiml.Node) -> None: node.dashes_to_unders_in_keys()
def test_dashes_to_unders_in_keys(class_node: yatiml.Node) -> None: assert class_node.has_attribute('dashed-attr') assert class_node.has_attribute('list1') class_node.dashes_to_unders_in_keys() assert class_node.has_attribute('dashed_attr') assert class_node.has_attribute('list1')