Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indent the outer argument if it fits in one line, rather than the inner one #123

Open
anntzer opened this issue Apr 22, 2015 · 0 comments
Open

Comments

@anntzer
Copy link

anntzer commented Apr 22, 2015

The title may sound cryptic but this is what I mean

$ echo 'a_very_indented_function(another_very_long_function(key0=val0, key1=val1, key2=val2))' | yapf
a_very_indented_function(another_very_long_function(key0=val0,
                                                    key1=val1,
                                                    key2=val2))

I'd argue

a_very_indented_function(
    another_very_long_function(key0=val0, key1=val1, key2=val2))

is clearly better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants