We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb97f0 commit fdc84dfCopy full SHA for fdc84df
mypyc/test-data/run-async.test
@@ -74,20 +74,10 @@ class C:
74
def concat(self, s: str) -> str:
75
return self.s + s
76
77
-async def make_c(s: str) -> C:
78
- await one()
79
- return C(s)
80
-
81
async def concat(s: str, t: str) -> str:
82
await one()
83
return s + t
84
85
-async def set_attr(s: str) -> None:
86
- (await make_c("xyz")).s = await concat(s, "!")
87
88
-def test_set_attr() -> None:
89
- asyncio.run(set_attr("foo")) # Just check that it compiles and runs
90
91
def concat2(x: str, y: str) -> str:
92
return x + y
93
@@ -126,7 +116,6 @@ def run(x: object) -> object: ...
126
116
127
117
[typing fixtures/typing-full.pyi]
128
118
129
130
119
[case testAsyncWith]
131
120
from testutil import async_val
132
121
0 commit comments