This is a development version (latest) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython latest / IPython / core / guarded_eval / _resolve_annotation

function

IPython.core.guarded_eval:_resolve_annotation

source: /dev/ipython/IPython/core/guarded_eval.py:1317

Signature

def _resolve_annotation(annotation: object | str, context: EvaluationContext, sig: Signature | None = None, func: Callable | None = None, node: ast.Call | None = None)

Summary

Resolve annotation created by user with typing module and custom objects.

Aliases

  • IPython.core.guarded_eval._resolve_annotation