def _forwardrefload(l: Loader, value: Any, type_: type) -> Any:
    """
    This resolves a ForwardRef.

    It just looks up the type in the dictionary of known types
    and loads the value using that.
    """
    if l.frefs is None:
        raise TypedloadException('ForwardRef resolving is disabled for the loader', value=value, type_=type_)
    tname = type_.__forward_arg__  # type: ignore
    t = l.frefs.get(tname)
    if t is None:
        raise TypedloadValueError(
            "ForwardRef '%s' unknown" % tname,
            value=value,
            type_=type_
        )
    return l.load(value, t, annotation=Annotation(AnnotationType.FORWARDREF, tname))
def _forwardrefload ( l : Loader , value : Any , type_ : type ) -> Any : if l . frefs is None : raise TypedloadException ( 'ForwardRef resolving is disabled for the loader' , value = value , type_ = type_ ) tname = type_ . __forward_arg__ t = l . frefs . get ( tname ) if t is None : raise TypedloadValueError ( "ForwardRef '%s' unknown" % tname , value = value , type_ = type_ ) return l . load ( value , t , annotation = Annotation ( AnnotationType . FORWARDREF , tname ) )
This resolves a ForwardRef.

    It just looks up the type in the dictionary of known types
    and loads the value using that.