MCPcopy Index your code
hub / github.com/python/cpython / _has_coroutine_mark

Function _has_coroutine_mark

Lib/inspect.py:308–312  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

306_is_coroutine_mark = object()
307
308def _has_coroutine_mark(f):
309 while ismethod(f):
310 f = f.__func__
311 f = functools._unwrap_partial(f)
312 return getattr(f, "_is_coroutine_marker", None) is _is_coroutine_mark
313
314def markcoroutinefunction(func):
315 """

Callers 1

iscoroutinefunctionFunction · 0.85

Calls 1

ismethodFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…