MCPcopy Index your code
hub / github.com/RustPython/RustPython / _make_forward_ref

Function _make_forward_ref

Lib/typing.py:952–961  ·  view source on GitHub ↗
(code, *, parent_fwdref=None, **kwargs)

Source from the content-addressed store, hash-verified

950
951
952def _make_forward_ref(code, *, parent_fwdref=None, **kwargs):
953 if parent_fwdref is not None:
954 if parent_fwdref.__forward_module__ is not None:
955 kwargs['module'] = parent_fwdref.__forward_module__
956 if parent_fwdref.__owner__ is not None:
957 kwargs['owner'] = parent_fwdref.__owner__
958 forward_ref = _lazy_annotationlib.ForwardRef(code, **kwargs)
959 # For compatibility, eagerly compile the forwardref's code.
960 forward_ref.__forward_code__
961 return forward_ref
962
963
964def evaluate_forward_ref(

Callers 4

_type_convertFunction · 0.85
_eval_typeFunction · 0.85
evaluate_forward_refFunction · 0.85
get_type_hintsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected