https://github.com/psf/black/blob/master/README.md#trailing-commas does not seem correct after #826?
commas are not removed in function calls any-more
-ham("spam",)
+ham("spam")
ham("spam",)
Is this a bug?
-foo("ham",)
+foo(
+ "ham",
+)
-ham("spam",)
+ham("spam")
I can confirm this: https://github.com/ansible-network/ansible_collections.network.cli/pull/14/files for an example
@pabelanger that's a collection so is behaving differently
Fixed by 6b935a34d08c0b18d858e7da5093dc69a29c55f2, closing.
Most helpful comment
commas are not removed in function calls any-more
Current Behaviours:
black 19.3b0:
black 19.10b0:
Is this a bug?
I'd expect either:
explode
or remove trailing commas like 19.3b0