Change a few tests to match new typeshed

This commit is contained in:
Dave Halter
2026-04-29 09:30:49 +02:00
parent 04e5f5b3b8
commit fe0369436e
11 changed files with 29 additions and 25 deletions
+2 -2
View File
@@ -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
+6 -6
View File
@@ -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']
+1 -1
View File
@@ -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]
+1 -1
View File
@@ -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