MCPcopy Index your code
hub / github.com/ipython/ipython / _get_coroutine_attributes

Function _get_coroutine_attributes

IPython/core/guarded_eval.py:754–762  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

752
753
754def _get_coroutine_attributes() -> dict[str, Optional[object]]:
755 async def _dummy():
756 return None
757
758 coro = _dummy()
759 try:
760 return {attr: getattr(coro, attr, None) for attr in dir(coro)}
761 finally:
762 coro.close()
763
764
765def eval_node(node: Union[ast.AST, None], context: EvaluationContext):

Callers 1

eval_nodeFunction · 0.85

Calls 2

_dummyFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…