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

Support wrapping only nested collections? #39

Open
PeterJCLaw opened this issue Jun 5, 2020 · 1 comment
Open

Support wrapping only nested collections? #39

PeterJCLaw opened this issue Jun 5, 2020 · 1 comment
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@PeterJCLaw
Copy link
Contributor

What's your stance on wrapping like this:

a = {'foo': [
    42,
]}
# or
z = [(
    'a',
), (
    'b',
)]

Is this something you'd be interested in allowing?

@jsfehler
Copy link
Owner

jsfehler commented Jun 5, 2020

Personally, I don't like it. Logically, it's a bit difficult to check. Once you allow one item to be on the line, you need to set conditions for what items are allowed.

I don't think I'd include it, in the name of enforcing a consistent style.

@jsfehler jsfehler added enhancement New feature or request wontfix This will not be worked on labels Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants