def fix_remaining_type_comments(node):
assert node.type == syms.file_input<EOL>last_n = None<EOL>for n in node.post_order():<EOL><INDENT>if last_n is not None:<EOL><INDENT>if n.type == token.NEWLINE and is_assignment(last_n):<EOL><INDENT>fix_variable_annotation_type_comment(n, last_n)<EOL><DEDENT>elif n.type == syms.funcdef and last_n.type == syms.suite:<EOL><INDENT>fix_signature_annotation_type_comment(n, last_n, offset=<NUM_LIT:1>)<EOL><DEDENT>elif n.type == syms.async_funcdef and last_n.type == syms.suite:<EOL><INDENT>fix_signature_annotation_type_comment(n, last_n, offset=<NUM_LIT:2>)<EOL><DEDENT><DEDENT>last_n = n<EOL><DEDENT>
Converts type comments in `node` to proper annotated assignments.