1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 05:40:06 +08:00
SpaceVim/bundle/jedi-vim/pythonx/jedi/test/completion/fstring.py

39 lines
376 B
Python
Raw Normal View History

2022-10-23 15:41:52 +08:00
# python >= 3.6
class Foo:
bar = 1
#? 10 int()
f'{Foo.bar}'
#? 10 ['bar']
f'{Foo.bar}'
#? 10 int()
Fr'{Foo.bar'
#? 10 ['bar']
Fr'{Foo.bar'
#? int()
Fr'{Foo.bar
#? ['bar']
Fr'{Foo.bar
#? ['Exception']
F"{Excepti
#? 8 Foo
Fr'a{Foo.bar'
#? str()
Fr'sasdf'
#? 7 str()
Fr'''sasdf''' + ''
#? ['upper']
f'xyz'.uppe
#? 3 []
f'f'
# Github #1248
#? int()
{"foo": 1}[f"foo"]