Skip to content

Commit 4bc8be9

Browse files
committed
Fix tests
1 parent 195669f commit 4bc8be9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

crates/ty_ide/src/completion.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,6 +1958,9 @@ class Quux:
19581958
);
19591959

19601960
assert_snapshot!(test.completions_without_builtins(), @r"
1961+
bar
1962+
baz
1963+
foo
19611964
__annotations__
19621965
__class__
19631966
__delattr__

crates/ty_ide/src/semantic_tokens.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,11 +1798,11 @@ class BoundedContainer[T: int, U = str]:
17981798
"T" @ 554..555: TypeParameter
17991799
"value2" @ 557..563: Parameter
18001800
"U" @ 565..566: TypeParameter
1801-
"self" @ 577..581: Variable
1801+
"self" @ 577..581: TypeParameter
18021802
"value1" @ 582..588: Variable
18031803
"T" @ 590..591: TypeParameter
18041804
"value1" @ 594..600: Parameter
1805-
"self" @ 609..613: Variable
1805+
"self" @ 609..613: TypeParameter
18061806
"value2" @ 614..620: Variable
18071807
"U" @ 622..623: TypeParameter
18081808
"value2" @ 626..632: Parameter

crates/ty_python_semantic/resources/mdtest/class/super.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ class A:
615615
class B(A):
616616
def __init__(self, a: int):
617617
super().__init__(a)
618-
# error: [unresolved-attribute] "Type `<super: <class 'B'>, B>` has no attribute `a`"
618+
# error: [unresolved-attribute] "Object of type `<super: <class 'B'>, B>` has no attribute `a`"
619619
super().a
620620

621621
# error: [unresolved-attribute] "Object of type `<super: <class 'B'>, B>` has no attribute `a`"

0 commit comments

Comments
 (0)