Skip to content

Commit e435d83

Browse files
committed
Update snapshots
1 parent 9f4c18a commit e435d83

13 files changed

Lines changed: 828 additions & 880 deletions

crates/ty_python_semantic/resources/mdtest/snapshots/async.md_-_Async_with_statement…_-_Accidental_use_of_as…_(5b8c1b4d846bc544).snap

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
source: crates/ty_test/src/lib.rs
33
expression: snapshot
44
---
5-
65
---
76
mdtest name: async.md - Async with statements - Accidental use of async `async with`
87
mdtest path: crates/ty_python_semantic/resources/mdtest/with/async.md
@@ -19,8 +18,7 @@ mdtest path: crates/ty_python_semantic/resources/mdtest/with/async.md
1918
4 |
2019
5 | async def main():
2120
6 | # error: [invalid-context-manager] "Object of type `Manager` cannot be used with `async with` because it does not implement `__aenter__` and `__aexit__`"
22-
7 | async with Manager():
23-
8 | ...
21+
7 | async with Manager(): ...
2422
```
2523

2624
# Diagnostics
@@ -31,9 +29,8 @@ error[invalid-context-manager]: Object of type `Manager` cannot be used with `as
3129
|
3230
5 | async def main():
3331
6 | # error: [invalid-context-manager] "Object of type `Manager` cannot be used with `async with` because it does not implement `__aent
34-
7 | async with Manager():
32+
7 | async with Manager(): ...
3533
| ^^^^^^^^^
36-
8 | ...
3734
|
3835
info: Objects of type `Manager` can be used as sync context managers
3936
info: Consider using `with` here

0 commit comments

Comments
 (0)