If I define a function like this:
def func1(var1, var2, var3):
"""
"""
# do something
return
the code folding works as expected, and it lets me fold the entire function.
But if the function contains many variables, to comply with PEP8 (https://www.python.org/dev/peps/pep-0008/) I have to put the variables in a second line, like so:
def func1(
var1, var2, var3, var4, var5, var6, var7, ...):
"""
"""
# do something
return
The indentation of the variables line prevents the code folding from working. Is there any way around this that doesn’t involve a PEP8 violation?
Thanks!