Skip to content

Commit ffb6928

Browse files
[mypyc] feat(docs): detail issue with inspect.iscoroutinefunction (#19309)
Silly little PR, but this note could have saved me some debugging time. I also opened [an issue](mypyc/mypyc#1110) and will make an attempt to solve the problem sometime in Q3.
1 parent 96fcd59 commit ffb6928

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypyc/doc/differences_from_python.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ non-exhaustive list of what won't work:
317317
- Frames of compiled functions can't be inspected using ``inspect``
318318
- Compiled methods aren't considered methods by ``inspect.ismethod``
319319
- ``inspect.signature`` chokes on compiled functions
320+
- ``inspect.iscoroutinefunction`` and ``asyncio.iscoroutinefunction`` will always return False for compiled functions, even those defined with `async def`
320321

321322
Profiling hooks and tracing
322323
***************************

0 commit comments

Comments
 (0)