black/docs
Richard Si 6417c99bfd
Hug power operators if its operands are "simple" (#2726)
Since power operators almost always have the highest binding power in expressions, it's often more readable to hug it with its operands. The main exception to this is when its operands are non-trivial in which case the power operator will not hug, the rule for this is the following:

> For power ops, an operand is considered "simple" if it's only a NAME, numeric CONSTANT, or attribute access (chained attribute access is allowed), with or without a preceding unary operator. 

Fixes GH-538.
Closes GH-2095.

diff-shades results: https://gist.github.com/ichard26/ca6c6ad4bd1de5152d95418c8645354b

Co-authored-by: Diego <dpalma@evernote.com>
Co-authored-by: Felix Hildén <felix.hilden@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-01-24 19:13:34 -08:00
..
_static Switch to Furo (#2793) 2022-01-21 15:00:13 -08:00
compatible_configs fix #1917 (#1918) 2021-01-11 08:21:14 -08:00
contributing Allow setting custom cache directory on all platforms (#2739) 2022-01-21 22:00:33 -08:00
guides Change cfg to ini for text highlighting (#2632) 2021-11-21 07:02:08 -08:00
integrations Remove Python 2 support (#2740) 2022-01-10 04:16:30 -08:00
the_black_code_style Hug power operators if its operands are "simple" (#2726) 2022-01-24 19:13:34 -08:00
usage_and_configuration Make SRC or code mandatory and mutually exclusive (#2360) (#2804) 2022-01-24 07:35:56 -08:00
authors.md Fix and test docs on Windows (#2262) 2021-05-26 19:04:10 -07:00
change_log.md Fix and test docs on Windows (#2262) 2021-05-26 19:04:10 -07:00
conf.py Switch to Furo (#2793) 2022-01-21 15:00:13 -08:00
faq.md Remove Beta mentions in README + Docs (#2801) 2022-01-23 12:34:01 -08:00
getting_started.md Change installation url to comply with git security change (#2765) 2022-01-11 14:37:07 -08:00
index.rst Remove Beta mentions in README + Docs (#2801) 2022-01-23 12:34:01 -08:00
license.rst Reorganize docs v2 (GH-2174) 2021-05-08 15:17:38 -04:00
make.bat add sphinx docs skeleton (#71) 2018-03-23 14:27:04 -07:00
Makefile Add EOF and trailing whitespace fixer to pre-commit config (#2330) 2021-06-13 10:22:46 -07:00
requirements.txt Switch to Furo (#2793) 2022-01-21 15:00:13 -08:00