Removing optional type annotations from assignments