python-black

PEP8 multi-line dict with multi-line value

你说的曾经没有我的故事 提交于 2021-02-10 04:16:27
问题 I use Black for Python, which conforms to PEP8. It removes the indentation from the second line of a two line long value string: mydict = { 'key0': 'value0', 'key1': 'long-two-lines-string-value1-does-not-fit-in-one-line-has-to-continue' 'value1' } to: mydict = { 'key0': 'value0', 'key1': 'long-two-lines-string-value1-does-not-fit-in-one-line-has-to-continue' 'value1', } A colleague questioned this change, and I am wondering if there is any resource/reference that I can use to backup Black's

PEP8 multi-line dict with multi-line value

你。 提交于 2021-02-10 04:15:52
问题 I use Black for Python, which conforms to PEP8. It removes the indentation from the second line of a two line long value string: mydict = { 'key0': 'value0', 'key1': 'long-two-lines-string-value1-does-not-fit-in-one-line-has-to-continue' 'value1' } to: mydict = { 'key0': 'value0', 'key1': 'long-two-lines-string-value1-does-not-fit-in-one-line-has-to-continue' 'value1', } A colleague questioned this change, and I am wondering if there is any resource/reference that I can use to backup Black's