Skip to content
Unverified Commit 4f6ad7cf authored by cobalt's avatar cobalt Committed by GitHub
Browse files

Wrap the `in` clause of comprehensions across lines if necessary (#4699)



* CI: Remove now-uneeded workarounds
The issues mentioned in the comments have all been fixed

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* Fix Click typing issue in run self

* oops, run self

* i swear this was failing earlier

ig it's not that related to this pr anyway

* has click updated itself yet on pre-commit.ci

* Bump click

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* Split the `in` clause of comprehensions onto its own line if necessary
Fixes #3498

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* Lint issues

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* Move to preview style

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* run self

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* Alternative approach

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* oops!

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* run test on preview, not unstable

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* Don't remove parens around ternaries

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci



* Update src/black/linegen.py

* Update docs/the_black_code_style/future_style.md

---------

Signed-off-by: default avatarcobalt <61329810+cobaltt7@users.noreply.github.com>
Co-authored-by: default avatarpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
parent 24f51696
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment