Skip to content

Commit b1b1822

Browse files
fix test
1 parent 050cff9 commit b1b1822

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

pyrefly/lib/test/lsp/hover.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ xyz = [foo.meth]
3939
#^
4040
"#;
4141
let report = get_batched_lsp_operations_report(&[("main", code)], get_test_report);
42-
assert!(report.contains("(method) meth: def meth(self: Foo) -> None: ..."));
42+
assert!(report.contains("(method) meth\ndef meth(self: Foo) -> None: ..."));
4343
assert!(report.contains("(variable) xyz: list[(self: Foo) -> None]"));
4444
assert!(
4545
report.contains("Go to [list]"),
@@ -75,7 +75,8 @@ from lib import foo_renamed
7575
2 | from lib import foo_renamed
7676
^
7777
```python
78-
(function) foo: def foo() -> None: ...
78+
(function) foo
79+
def foo() -> None: ...
7980
```
8081
8182
@@ -111,7 +112,8 @@ takes(foo=1, bar="x", baz=None)
111112
12 | takes(foo=1, bar="x", baz=None)
112113
^
113114
```python
114-
(function) takes: def takes(
115+
(function) takes
116+
def takes(
115117
*,
116118
foo: int,
117119
bar: str,
@@ -228,10 +230,11 @@ lhs @ rhs
228230
13 | lhs @ rhs
229231
^
230232
```python
231-
(method) __matmul__: (
233+
(method) __matmul__
234+
def __matmul__(
232235
self: Matrix,
233236
other: Matrix
234-
) -> Matrix
237+
) -> Matrix: ...
235238
```
236239
"#
237240
.trim(),

0 commit comments

Comments
 (0)