return result
-def wikibox_to_template(value, name, converter_dict):
+def wikibox_to_template(value, name, converter_dict) -> mwparserfromhell.nodes.template.Template:
template = mwparserfromhell.nodes.template.Template(name)
for key, converter in converter_dict.items():
template.add(key, converter.to_str(value[key]))
return wikibox_to_template(value, RODELBAHNBOX_TEMPLATE_NAME, RODELBAHNBOX_DICT)
-def rodelbahnbox_from_str(value):
+def rodelbahnbox_from_str(value: str) -> Dict:
"""Returns an ordered dict."""
return wikibox_from_str(value, RODELBAHNBOX_TEMPLATE_NAME, RODELBAHNBOX_DICT)
-def rodelbahnbox_to_str(value):
+def rodelbahnbox_to_str(value: Dict) -> str:
template = rodelbahnbox_to_template(value)
format_template_table(template, 20)
return str(template)