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 5852bd8 commit 6686557Copy full SHA for 6686557
tools/synchro.py
@@ -322,6 +322,14 @@ def translate_coroutine_types(lines: list[str]) -> list[str]:
322
index = lines.index(type)
323
new = type.replace(old, res.group(3))
324
lines[index] = new
325
+ coroutine_types = [line for line in lines if "Awaitable[" in line]
326
+ for type in coroutine_types:
327
+ res = re.search(r"Awaitable\[([A-z]+)\]", type)
328
+ if res:
329
+ old = res[0]
330
+ index = lines.index(type)
331
+ new = type.replace(old, res.group(1))
332
+ lines[index] = new
333
return lines
334
335
0 commit comments