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:
# Lambda example
divide = lambda x, y: x/y
print(divide(10, 2))
To this 7 line code:
# Lambda example
def divide(x, y): return x/y
print(divide(10, 2))
Does anyone know how do I make this program to specifically not convert my lambda function into def function?
It has been formatting my code really good, so I don't want to completely disable this automatic feature, just for the lambda thing.