Return true if the object is an asynchronous generator function. Asynchronous generator functions are defined with "async def" syntax and have "yield" expressions in their body.
(obj)
| 414 | return _has_code_flag(obj, CO_COROUTINE) |
| 415 | |
| 416 | def isasyncgenfunction(obj): |
| 417 | """Return true if the object is an asynchronous generator function. |
| 418 | |
| 419 | Asynchronous generator functions are defined with "async def" |
| 420 | syntax and have "yield" expressions in their body. |
| 421 | """ |
| 422 | return _has_code_flag(obj, CO_ASYNC_GENERATOR) |
| 423 | |
| 424 | def isasyncgen(object): |
| 425 | """Return true if the object is an asynchronous generator.""" |
nothing calls this directly
no test coverage detected