Sweet! Thanks! I did not know that, and I've no problem with a terminal comma there.
My point stands - I do not think those spaces are superfluous. Consider the following:
a = 4
def foo(i: int):
return "A" * i
class Spam:
foo = 4
bar: int = 6
def eggs(self, n: int = 5):
return foo(i=n)
Why is it "i=n" instead of "i = n" when every other use of "=" has spaces?For this one case of a short function with simple names, okay, I don't always use spaces.
But otherwise I think the lack of spaces makes it the code harder to read, and thus "uglier".