ruff/crates/ruff_python_parser/resources/valid/statement/augmented_assignment.py

21 lines
212 B
Python

x += 1
x.y += (1, 2, 3)
x[y] += (1, 2, 3)
# All possible augmented assignment tokens
x += 1
x -= 1
x *= 1
x /= 1
x //= 1
x %= 1
x **= 1
x &= 1
x |= 1
x ^= 1
x <<= 1
x >>= 1
x @= 1
# Mixed
a //= (a + b) - c ** 2