You have a following piece of code:
def function() :
#a misplaced comment
return result
When you try to correct it with autopep8 --in-place file.py, you get this:
def function():
# a misplaced comment
return result
The program has corrected indentation and whitespace problems, but ignored a serious mistake – the undefined result variable. Why did it happen?