@@ -156,7 +156,7 @@ def async_function_2(posonly, /, pos_or_k, pos_ok_k_d=1, *varargs, **varkwargs):
156
156
@add
157
157
def generator_function_3 (posonly , / , pos_or_k , pos_ok_k_d = 1 , * varargs , ** varkwargs ):
158
158
"""{
159
- "kind": "function",
159
+ "kind": "generator function",
160
160
"parameters": [
161
161
{
162
162
"annotation": {
@@ -226,7 +226,7 @@ async def async_generator_function_4(
226
226
posonly , / , pos_or_k , pos_ok_k_d = 1 , * varargs , ** varkwargs
227
227
):
228
228
"""{
229
- "kind": "function",
229
+ "kind": "async_generator function",
230
230
"parameters": [
231
231
{
232
232
"annotation": {
@@ -291,6 +291,76 @@ async def async_generator_function_4(
291
291
yield
292
292
293
293
294
+ @add
295
+ async def coroutine_function_5 (
296
+ posonly , / , pos_or_k , pos_ok_k_d = 1 , * varargs , ** varkwargs
297
+ ):
298
+ """{
299
+ "kind": "coroutine function",
300
+ "parameters": [
301
+ {
302
+ "annotation": {
303
+ "type": "Empty"
304
+ },
305
+ "default": {
306
+ "type": "Empty"
307
+ },
308
+ "kind": "POSITIONAL_ONLY",
309
+ "name": "posonly",
310
+ "type": "ParameterNode"
311
+ },
312
+ {
313
+ "annotation": {
314
+ "type": "Empty"
315
+ },
316
+ "default": {
317
+ "type": "Empty"
318
+ },
319
+ "kind": "POSITIONAL_OR_KEYWORD",
320
+ "name": "pos_or_k",
321
+ "type": "ParameterNode"
322
+ },
323
+ {
324
+ "annotation": {
325
+ "type": "Empty"
326
+ },
327
+ "default": {
328
+ "data": "1",
329
+ "type": "str"
330
+ },
331
+ "kind": "POSITIONAL_OR_KEYWORD",
332
+ "name": "pos_ok_k_d",
333
+ "type": "ParameterNode"
334
+ },
335
+ {
336
+ "annotation": {
337
+ "type": "Empty"
338
+ },
339
+ "default": {
340
+ "type": "Empty"
341
+ },
342
+ "kind": "VAR_POSITIONAL",
343
+ "name": "varargs",
344
+ "type": "ParameterNode"
345
+ },
346
+ {
347
+ "annotation": {
348
+ "type": "Empty"
349
+ },
350
+ "default": {
351
+ "type": "Empty"
352
+ },
353
+ "kind": "VAR_KEYWORD",
354
+ "name": "varkwargs",
355
+ "type": "ParameterNode"
356
+ }
357
+ ],
358
+ "return_annotation": {"type": "Empty"},
359
+ "type": "SignatureNode"
360
+ }"""
361
+ pass
362
+
363
+
294
364
@add
295
365
def function_with_annotation5 (a : int , b : Union [int , float ]) -> Optional [bool ]:
296
366
"""
0 commit comments