Fix typing

This commit is contained in:
Dankrad Feist
2019-05-07 13:23:28 +01:00
parent 1db49f4c98
commit 4ad92a0989
3 changed files with 36 additions and 34 deletions

View File

@@ -39,7 +39,7 @@ def get_spec(file_name: str, phase:int = 0) -> List[str]:
else:
if pulling_from == linenum and line == '{':
if is_update_section:
code_lines.append('%s = SSZTypeExtension({' % current_name)
code_lines.append('%s = SSZTypeExtension(%s, {' % (current_name, current_name))
else:
code_lines.append('%s = SSZType({' % current_name)
current_typedef = ['global_vars["%s"] = SSZType({' % current_name]