mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-07 05:24:01 +08:00
Change a few tests to match new typeshed
This commit is contained in:
@@ -233,12 +233,12 @@ def a():
|
||||
# str literals in comment """ upper
|
||||
|
||||
def completion_in_comment():
|
||||
#? ['Exception']
|
||||
#? ['Exception', 'ExceptionGroup']
|
||||
# might fail because the comment is not a leaf: Exception
|
||||
pass
|
||||
|
||||
some_word
|
||||
#? ['Exception']
|
||||
#? ['Exception', 'ExceptionGroup']
|
||||
# Very simple comment completion: Exception
|
||||
# Commment after it
|
||||
|
||||
|
||||
@@ -114,27 +114,27 @@ x(1, bar=2, ba)
|
||||
x(1, ba, baz=3)
|
||||
#? 14 ['baz=']
|
||||
x(1, bar=2, baz=3)
|
||||
#? 7 ['BaseException']
|
||||
#? 7 ['BaseException', 'BaseExceptionGroup']
|
||||
x(basee)
|
||||
#? 22 ['bar=', 'baz=']
|
||||
x(1, 2, 3, 4, 5, 6, bar=2)
|
||||
|
||||
#? 14 ['baz=']
|
||||
y(1, bar=2, ba)
|
||||
#? 7 ['bar=', 'BaseException', 'baz=']
|
||||
#? 7 ['bar=', 'BaseException', 'BaseExceptionGroup', 'baz=']
|
||||
y(1, ba, baz=3)
|
||||
#? 14 ['baz=']
|
||||
y(1, bar=2, baz=3)
|
||||
#? 7 ['BaseException']
|
||||
#? 7 ['BaseException', 'BaseExceptionGroup']
|
||||
y(basee)
|
||||
#? 22 ['bar=', 'BaseException', 'baz=']
|
||||
#? 22 ['bar=', 'BaseException', 'BaseExceptionGroup', 'baz=']
|
||||
y(1, 2, 3, 4, 5, 6, bar=2)
|
||||
|
||||
#? 11 ['bar=', 'bas=']
|
||||
z(bam=1, bar=2, bas=3)
|
||||
#? 8 ['BaseException', 'bas=']
|
||||
#? 8 ['BaseException', 'BaseExceptionGroup', 'bas=']
|
||||
z(1, bas=2)
|
||||
#? 12 ['BaseException']
|
||||
#? 12 ['BaseException', 'BaseExceptionGroup']
|
||||
z(1, bas=bas)
|
||||
|
||||
#? 19 ['dict']
|
||||
|
||||
@@ -34,7 +34,7 @@ def we_can_has_sequence(p: Sequence[int], q: Sequence[B], r: Sequence[int],
|
||||
t[1]
|
||||
#? ["append"]
|
||||
u.a
|
||||
#? float() list()
|
||||
#? float()
|
||||
u[1.0]
|
||||
#? float()
|
||||
u[1]
|
||||
|
||||
@@ -360,7 +360,7 @@ X.attr_x.value
|
||||
X.attr_y.name
|
||||
#? float()
|
||||
X.attr_y.value
|
||||
#? str()
|
||||
#?
|
||||
X().name
|
||||
#? float()
|
||||
X().attr_x.attr_y.value
|
||||
|
||||
Reference in New Issue
Block a user