Consider this input:
class Test:
def method(self):
ctx = super().get_context_data(**kwargs)
ctx["shipping_methods"] = list(
ShippingMethod.objects.all().values("id", "labels__identifier")
)
ctx["shipping_method_fields"] = (
MyCheckoutForm.Meta.shipping_required_fields
)
return ctx
And output:
class Test:
def method(self):
ctx = super().get_context_data(**kwargs)
ctx["shipping_methods"] = list(
ShippingMethod.objects.all().values("id", "labels__identifier")
)
ctx[
"shipping_method_fields"
] = MyCheckoutForm.Meta.shipping_required_fields
return ctx
I would (subjectively) expect the third assignment to stay the way it was.
Do "a[...]" often contain more than 1 element between the brackets? (Ignore this argument please; of course they do if it's something other than a string literal)
Operating system:
Python version: 3.7.3
Black version: 19.3b0
Does also happen on master: yes
Consider this input:
And output:
I would (subjectively) expect the third assignment to stay the way it was.
Do "a[...]" often contain more than 1 element between the brackets?(Ignore this argument please; of course they do if it's something other than a string literal)Operating system:
Python version: 3.7.3
Black version: 19.3b0
Does also happen on master: yes