From 27655db8a97e616c563c5aab5b5171c3b3706a42 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 31 Mar 2018 17:07:47 +0200 Subject: [PATCH] With the changes in parso, f-strings are now completable --- test/completion/fstring.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/completion/fstring.py diff --git a/test/completion/fstring.py b/test/completion/fstring.py new file mode 100644 index 00000000..fda3546e --- /dev/null +++ b/test/completion/fstring.py @@ -0,0 +1,17 @@ +# 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