1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-27 12:00:04 +08:00
SpaceVim/bundle/nvim-treesitter/tests/indent/python/comprehensions.py
2022-04-14 12:01:23 +08:00

26 lines
238 B
Python
Vendored

# list
a = [
x + 1 for x in range(3)
]
# dict
b = {
x: x + 1 for x in range(3)
}
# generator
c = (
x * x for x in range(3)
)
# set
d = {
x + x for x in range(3)
}
# other styles
e = [
x + 1 for x
in range(3)
]