Skip to content

Commit 2330b70

Browse files
authored
[ty] Force-update all insta snapshots (#23343)
## Summary Force-update insta snapshots across all ty crates. Seems like those are maybe from old PRs that were merged after #22313?
1 parent a04d67e commit 2330b70

12 files changed

Lines changed: 160 additions & 151 deletions

crates/ty_ide/src/all_symbols.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ def zqzqzq():
652652
)
653653
.build();
654654

655-
assert_snapshot!(test.all_symbols("zqzqzq"), @r"
655+
assert_snapshot!(test.all_symbols("zqzqzq"), @"
656656
info[all-symbols]: AllSymbolInfo
657657
--> pandas/__init__.py:2:27
658658
|
@@ -698,7 +698,7 @@ def zqzqzq():
698698
)
699699
.build();
700700

701-
assert_snapshot!(test.all_symbols("zqzqzq"), @r"
701+
assert_snapshot!(test.all_symbols("zqzqzq"), @"
702702
info[all-symbols]: AllSymbolInfo
703703
--> pandas/__init__.py:2:37
704704
|
@@ -743,7 +743,7 @@ def zqzqzq():
743743
)
744744
.build();
745745

746-
assert_snapshot!(test.all_symbols("zqzqzq"), @r"
746+
assert_snapshot!(test.all_symbols("zqzqzq"), @"
747747
info[all-symbols]: AllSymbolInfo
748748
--> pandas/__init__.py:2:5
749749
|
@@ -794,7 +794,7 @@ def zqzqzq():
794794
)
795795
.build();
796796

797-
assert_snapshot!(test.all_symbols("zqzqzq"), @r"
797+
assert_snapshot!(test.all_symbols("zqzqzq"), @"
798798
info[all-symbols]: AllSymbolInfo
799799
--> pandas/io/api.py:2:31
800800
|
@@ -857,7 +857,7 @@ __all__ = ['zqzqzq']
857857
)
858858
.build();
859859

860-
assert_snapshot!(test.all_symbols("zqzqzq"), @r"
860+
assert_snapshot!(test.all_symbols("zqzqzq"), @"
861861
info[all-symbols]: AllSymbolInfo
862862
--> pandas/__init__.py:2:5
863863
|
@@ -889,7 +889,7 @@ def zqzqzq():
889889
.source("sub1/sub2/sub3.py", "from pandas import zqzqzq as zqzqzq")
890890
.build();
891891

892-
assert_snapshot!(test.all_symbols("zqzqzq"), @r"
892+
assert_snapshot!(test.all_symbols("zqzqzq"), @"
893893
info[all-symbols]: AllSymbolInfo
894894
--> pandas/__init__.py:2:5
895895
|
@@ -932,7 +932,7 @@ def zqzqzq():
932932
.source("sub1/sub2/sub3.py", "from pandas import zqzqzq as zqzqzq")
933933
.build();
934934

935-
assert_snapshot!(test.all_symbols("zqzqzq"), @r"
935+
assert_snapshot!(test.all_symbols("zqzqzq"), @"
936936
info[all-symbols]: AllSymbolInfo
937937
--> pandas/__init__.py:2:5
938938
|
@@ -1042,7 +1042,7 @@ def test_helper_xyzxyzxyz():
10421042

10431043
// First-party test symbols should still be available
10441044
// (both test_ prefixed and non-test_ prefixed)
1045-
assert_snapshot!(test.all_symbols("xyzxyzxyz"), @r"
1045+
assert_snapshot!(test.all_symbols("xyzxyzxyz"), @"
10461046
info[all-symbols]: AllSymbolInfo
10471047
--> mypackage/tests/test_utils.py:2:5
10481048
|
@@ -1080,7 +1080,7 @@ def test_helper_xyzxyzxyz():
10801080
)
10811081
.build();
10821082

1083-
assert_snapshot!(test.all_symbols("xyzxyzxyz"), @r"
1083+
assert_snapshot!(test.all_symbols("xyzxyzxyz"), @"
10841084
info[all-symbols]: AllSymbolInfo
10851085
--> site-packages/thirdparty/utils.py:1:5
10861086
|
@@ -1114,7 +1114,7 @@ def test_helper_xyzxyzxyz():
11141114
.source("mypackage/_foo/__init__.py", "ZQZQZQ = 1")
11151115
.build();
11161116

1117-
assert_snapshot!(test.all_symbols("zqzqzq"), @r"
1117+
assert_snapshot!(test.all_symbols("zqzqzq"), @"
11181118
info[all-symbols]: AllSymbolInfo
11191119
--> mypackage/_foo/__init__.py:1:1
11201120
|
@@ -1162,7 +1162,7 @@ def test_helper_xyzxyzxyz():
11621162
.site_packages("thirdparty/_foo/__init__.py", "ZQZQZQ = 1")
11631163
.build();
11641164

1165-
assert_snapshot!(test.all_symbols("zqzqzq"), @r"
1165+
assert_snapshot!(test.all_symbols("zqzqzq"), @"
11661166
info[all-symbols]: AllSymbolInfo
11671167
--> site-packages/thirdparty/__init__.py:1:1
11681168
|

crates/ty_ide/src/completion.rs

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8492,42 +8492,42 @@ raise <CURSOR>
84928492
);
84938493
assert_snapshot!(
84948494
builder.skip_auto_import().skip_builtins().build().snapshot(),
8495-
@r"
8496-
and
8497-
as
8498-
assert
8499-
async
8500-
await
8501-
break
8502-
case
8503-
class
8504-
continue
8505-
def
8506-
del
8507-
elif
8508-
else
8509-
except
8510-
finally
8511-
for
8512-
from
8513-
global
8514-
if
8515-
import
8516-
in
8517-
is
8518-
lambda
8519-
match
8520-
nonlocal
8521-
not
8522-
or
8523-
pass
8524-
raise
8525-
return
8526-
try
8527-
while
8528-
with
8529-
yield
8530-
",
8495+
@"
8496+
and
8497+
as
8498+
assert
8499+
async
8500+
await
8501+
break
8502+
case
8503+
class
8504+
continue
8505+
def
8506+
del
8507+
elif
8508+
else
8509+
except
8510+
finally
8511+
for
8512+
from
8513+
global
8514+
if
8515+
import
8516+
in
8517+
is
8518+
lambda
8519+
match
8520+
nonlocal
8521+
not
8522+
or
8523+
pass
8524+
raise
8525+
return
8526+
try
8527+
while
8528+
with
8529+
yield
8530+
",
85318531
);
85328532
}
85338533

crates/ty_ide/src/find_references.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ test("test")
410410
)
411411
.build();
412412

413-
assert_snapshot!(test.references(), @"
413+
assert_snapshot!(test.references(), @r#"
414414
info[references]: Found 6 references
415415
--> lib.py:5:5
416416
|
@@ -433,10 +433,10 @@ test("test")
433433
2 | from lib import test
434434
| ----
435435
3 |
436-
4 | test(\"test\")
436+
4 | test("test")
437437
| ----
438438
|
439-
");
439+
"#);
440440
}
441441

442442
#[test]
@@ -1242,7 +1242,7 @@ result = func(value=42)
12421242
)
12431243
.build();
12441244

1245-
assert_snapshot!(test.references(), @r#"
1245+
assert_snapshot!(test.references(), @"
12461246
info[references]: Found 3 references
12471247
--> main.py:4:15
12481248
|
@@ -1258,7 +1258,7 @@ result = func(value=42)
12581258
3 | return value * 2
12591259
| -----
12601260
|
1261-
"#);
1261+
");
12621262
}
12631263

12641264
#[test]
@@ -1282,7 +1282,7 @@ async def main():
12821282
)
12831283
.build();
12841284

1285-
assert_snapshot!(test.references(), @r#"
1285+
assert_snapshot!(test.references(), @"
12861286
info[references]: Found 3 references
12871287
--> main.py:5:23
12881288
|
@@ -1297,7 +1297,7 @@ async def main():
12971297
3 | return value * 2
12981298
| -----
12991299
|
1300-
"#);
1300+
");
13011301
}
13021302

13031303
#[test]
@@ -1321,7 +1321,7 @@ instance = ExampleClass(old_name="test")
13211321
)
13221322
.build();
13231323

1324-
assert_snapshot!(test.references(), @r#"
1324+
assert_snapshot!(test.references(), @"
13251325
info[references]: Found 1 references
13261326
--> example_rename_2.py:4:14
13271327
|
@@ -1330,7 +1330,7 @@ instance = ExampleClass(old_name="test")
13301330
4 | self.old_name = old_name
13311331
| --------
13321332
|
1333-
"#);
1333+
");
13341334
}
13351335

13361336
#[test]
@@ -1359,7 +1359,7 @@ result = func(value=10)
13591359
// TODO(parameter-keyword-references): Nested callable owners are intentionally excluded by
13601360
// the external-visibility heuristic (perf/signal tradeoff).
13611361
// Ideal output would also include `caller.py` at `func(value=10)` on `value`.
1362-
assert_snapshot!(test.references(), @r#"
1362+
assert_snapshot!(test.references(), @"
13631363
info[references]: Found 2 references
13641364
--> outer.py:3:15
13651365
|
@@ -1370,7 +1370,7 @@ result = func(value=10)
13701370
| -----
13711371
5 | return inner
13721372
|
1373-
"#);
1373+
");
13741374
}
13751375

13761376
#[test]

crates/ty_ide/src/goto_declaration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ mod tests {
138138
",
139139
);
140140

141-
assert_snapshot!(test.goto_declaration(), @r"
141+
assert_snapshot!(test.goto_declaration(), @"
142142
info[goto-declaration]: Go to declaration
143143
--> main.py:6:12
144144
|

crates/ty_ide/src/goto_definition.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ class MyOtherClass:
427427
)
428428
.build();
429429

430-
assert_snapshot!(test.goto_definition(), @r"
430+
assert_snapshot!(test.goto_definition(), @"
431431
info[goto-definition]: Go to definition
432432
--> main.py:3:5
433433
|
@@ -1663,7 +1663,7 @@ x = MyClass<CURSOR>()
16631663
)
16641664
.build();
16651665

1666-
assert_snapshot!(test.goto_definition(), @r"
1666+
assert_snapshot!(test.goto_definition(), @"
16671667
info[goto-definition]: Go to definition
16681668
--> main.py:5:5
16691669
|
@@ -1699,7 +1699,7 @@ x = MyClass(<CURSOR>)
16991699
)
17001700
.build();
17011701

1702-
assert_snapshot!(test.goto_definition(), @r"
1702+
assert_snapshot!(test.goto_definition(), @"
17031703
info[goto-definition]: Go to definition
17041704
--> main.py:5:5
17051705
|
@@ -1761,7 +1761,7 @@ x = MyClass(foo<CURSOR>)
17611761

17621762
assert_snapshot!(
17631763
test.goto_definition(),
1764-
@r"
1764+
@"
17651765
info[goto-definition]: Go to definition
17661766
--> main.py:7:13
17671767
|
@@ -1799,7 +1799,7 @@ x = MyClass<CURSOR>()
17991799
)
18001800
.build();
18011801

1802-
assert_snapshot!(test.goto_definition(), @r"
1802+
assert_snapshot!(test.goto_definition(), @"
18031803
info[goto-definition]: Go to definition
18041804
--> main.py:7:5
18051805
|
@@ -2055,7 +2055,7 @@ p = Point<CURSOR>(1, 2)
20552055
)
20562056
.build();
20572057

2058-
assert_snapshot!(test.goto_definition(), @r#"
2058+
assert_snapshot!(test.goto_definition(), @"
20592059
info[goto-definition]: Go to definition
20602060
--> main.py:4:5
20612061
|
@@ -2074,7 +2074,7 @@ p = Point<CURSOR>(1, 2)
20742074
263 | @property
20752075
264 | def __flags__(self) -> int: ...
20762076
|
2077-
"#);
2077+
");
20782078
}
20792079

20802080
/// Goto-definition performs lookups on the metaclass when attributes are not found.
@@ -2093,7 +2093,7 @@ p = Point<CURSOR>(1, 2)
20932093
)
20942094
.build();
20952095

2096-
assert_snapshot!(test.goto_definition(), @r#"
2096+
assert_snapshot!(test.goto_definition(), @"
20972097
info[goto-definition]: Go to definition
20982098
--> main.py:6:5
20992099
|
@@ -2110,7 +2110,7 @@ p = Point<CURSOR>(1, 2)
21102110
4 |
21112111
5 | class Bar(metaclass=Foo): ...
21122112
|
2113-
"#);
2113+
");
21142114
}
21152115

21162116
/// Goto-definition does not look up instance members on the metaclass.
@@ -2129,7 +2129,7 @@ p = Point<CURSOR>(1, 2)
21292129
)
21302130
.build();
21312131

2132-
assert_snapshot!(test.goto_definition(), @r#"No goto target found"#);
2132+
assert_snapshot!(test.goto_definition(), @"No goto target found");
21332133
}
21342134

21352135
/// Check that we don't fall into infinite recursion when e.g.
@@ -2141,7 +2141,7 @@ p = Point<CURSOR>(1, 2)
21412141
.source("main.py", "type.<CURSOR>a")
21422142
.build();
21432143

2144-
assert_snapshot!(test.goto_definition(), @r#"No goto target found"#);
2144+
assert_snapshot!(test.goto_definition(), @"No goto target found");
21452145
}
21462146

21472147
/// Check that we don't fall into infinite recursion when e.g.

0 commit comments

Comments
 (0)