code autoformat for lambda *args: expression
Brought to you by:
fabioz
If I have the code auto-formatter set to add spaces after binary operators (i.e. x = 2 * 3), it treats the * character as a multiplication operator in this situation when it should not: cons = lambda *args: args
For keyword arguments the auto-formatter correctly (in my view) leaves the double-star alone:
dictf = lambda **kwargs: kwargs
Request enhancement to the auto-formatter to specifically check for the lambda keyword used with varargs, and do not treat the * as a multiplication operator. Or perhaps, have that be a configurable option separately from multiplication.