-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
F: linebreakHow should we split up lines?How should we split up lines?S: needs discussionNeeds further hashing out before ready for implementation (on desirability, feasibility, etc.)Needs further hashing out before ready for implementation (on desirability, feasibility, etc.)T: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?
Description
Operating system: Mac
Python version: 3.7
Black version: 18.9b0
Does also happen on master:
Following on https://twitter.com/llanga/status/1052631100290420736
I have a code which uses yarl.URL
a = str(
my_very_very_very_long_url_name
.with_user(and_very_long_username)
.with_password(and_very_long_password)
)Black formats it like this
a = str(
my_very_very_very_long_url_name.with_user(and_very_long_username).with_password(
and_very_long_password
)
)I understand that first call is not on a new line because of reasons, but the rest still looks quite odd, especially considering that when there are three calls in the chain, Black produces
a = str(
my_very_very_very_long_url_name.with_user(and_very_long_username)
.with_user(and_very_long_username)
.with_password(and_very_long_password)
)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
F: linebreakHow should we split up lines?How should we split up lines?S: needs discussionNeeds further hashing out before ready for implementation (on desirability, feasibility, etc.)Needs further hashing out before ready for implementation (on desirability, feasibility, etc.)T: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?