Skip to content

Commit 26b0247

Browse files
committed
Fix invalid async syntax in test
1 parent 2ebbcec commit 26b0247

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test-data/unit/check-default-plugin.test

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ async def yield_id(item: T) -> AsyncGenerator[T, None]:
3737

3838
reveal_type(yield_id) # N: Revealed type is "def [T] (item: T`-1) -> typing.AsyncContextManager[T`-1]"
3939

40-
async with yield_id(1) as x:
41-
reveal_type(x) # N: Revealed type is "builtins.int*"
40+
async def f() -> None:
41+
async with yield_id(1) as x:
42+
reveal_type(x) # N: Revealed type is "builtins.int*"
4243
[typing fixtures/typing-async.pyi]
4344
[builtins fixtures/tuple.pyi]
4445

0 commit comments

Comments
 (0)