Gets corrected to: I have tried to: Reinstall Virtual Studio Code Reinstall Python 3.8 Computer Reboot Using other formatters like Black and yapf but got the same result Answer Because autopep8 follows PEP8 which suggests 2 blank lines around top-level functions. Surround top-level function and class definitions with two blank lines.
Tag: autopep8
Auto-PEP8 is adding lines by turning my lambda into def function, how do I disable this specific auto format?
I am using Visual Studio Code and PEP8 is automatically formatting a part of my code, I was just learning about lambdas and I had a 3 line code like this: It went from this 3 line code: To this 7 line code: Does anyone know how do I make this program to specifically not convert my lambda function into