Skip to content

Commit 8e3ab3a

Browse files
feat(docs): detail issue with inspect.iscoroutinefunction
Silly little PR, but I'm also opening an issue at the same time and will make an attempt to solve the problem in the next few weeks.
1 parent ed88d82 commit 8e3ab3a

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`` always returns False for compiled functions, even those defined with `async def`
320321

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

0 commit comments

Comments
 (0)