# Use difflib to show the changes to verify type annotations were added as expected. import difflib def printdiff(original_node, updated_node): return ( "".join difflib.unified_diff(original_node.splitlines(1), updated_node.splitlines(1)) ) )