![]() 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> |
||
---|---|---|
.. | ||
data | ||
__init__.py | ||
conftest.py | ||
empty.toml | ||
optional.py | ||
test_black.py | ||
test_blackd.py | ||
test_format.py | ||
test_ipynb.py | ||
test_no_ipynb.py | ||
test_primer.py | ||
test_trans.py | ||
test.toml | ||
util.py |