Avoid space around pow for None, True and False (#8189)
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
---
|
||||
source: crates/ruff_python_formatter/tests/fixtures.rs
|
||||
input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/binary_pow_spacing.py
|
||||
---
|
||||
## Input
|
||||
```py
|
||||
# No spacing
|
||||
5 ** 5
|
||||
5.0 ** 5.0
|
||||
1e5 ** 2e5
|
||||
True ** True
|
||||
False ** False
|
||||
None ** None
|
||||
|
||||
# Space
|
||||
"a" ** "b"
|
||||
```
|
||||
|
||||
## Output
|
||||
```py
|
||||
# No spacing
|
||||
5**5
|
||||
5.0**5.0
|
||||
1e5**2e5
|
||||
True**True
|
||||
False**False
|
||||
None**None
|
||||
|
||||
# Space
|
||||
"a" ** "b"
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user