forked from VimPlug/jedi
Small improvements to generator/async completions
This commit is contained in:
@@ -33,12 +33,12 @@ else
|
||||
|
||||
try:
|
||||
pass
|
||||
#? ['except', 'Exception']
|
||||
#? ['except', 'Exception', 'ExceptionGroup']
|
||||
except
|
||||
|
||||
try:
|
||||
pass
|
||||
#? 6 ['except', 'Exception']
|
||||
#? 6 ['except', 'Exception', 'ExceptionGroup']
|
||||
except AttributeError:
|
||||
pass
|
||||
#? ['finally']
|
||||
|
||||
@@ -13,7 +13,7 @@ Fr'{Foo.bar'
|
||||
Fr'{Foo.bar
|
||||
#? ['bar']
|
||||
Fr'{Foo.bar
|
||||
#? ['Exception']
|
||||
#? ['Exception', 'ExceptionGroup']
|
||||
F"{Excepti
|
||||
|
||||
#? 8 Foo
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#? ['raise']
|
||||
raise
|
||||
|
||||
#? ['Exception']
|
||||
#? ['Exception', 'ExceptionGroup']
|
||||
except
|
||||
|
||||
#? []
|
||||
|
||||
@@ -49,11 +49,7 @@ def iterators(ps: Iterable[int], qs: Iterator[str], rs:
|
||||
a, b = ps
|
||||
#? int()
|
||||
a
|
||||
##? int() --- TODO fix support for tuple assignment
|
||||
# https://github.com/davidhalter/jedi/pull/663#issuecomment-172317854
|
||||
# test below is just to make sure that in case it gets fixed by accident
|
||||
# these tests will be fixed as well the way they should be
|
||||
#?
|
||||
#? int()
|
||||
b
|
||||
|
||||
for q in qs:
|
||||
|
||||
@@ -167,7 +167,7 @@ from datetime import datetime, timedelta
|
||||
(datetime - timedelta)
|
||||
#? datetime()
|
||||
(datetime() - timedelta())
|
||||
#? timedelta()
|
||||
#? timedelta() datetime()
|
||||
(datetime() - datetime())
|
||||
#? timedelta()
|
||||
(timedelta() - datetime())
|
||||
|
||||
@@ -389,6 +389,6 @@ if False:
|
||||
# -----------------
|
||||
|
||||
import socket
|
||||
#< (1, 21), (0, 7), ('socket', ..., 6), ('stub:socket', ..., 4), ('imports', ..., 7)
|
||||
#< (1, 21), (0, 7), ('socket', ..., 6), ('stub:socket', ..., 6), ('imports', ..., 7)
|
||||
socket.SocketIO
|
||||
some_socket = socket.SocketIO()
|
||||
|
||||
Reference in New Issue
Block a user