def type_from_annotations(annotations: Mapping[(str, object)], key: str, *, globals: Optional[Mapping[(str, object)]]=None, ctx: Optional[Context]=None) -> Optional[Value]:
    try:
        annotation = annotations[key]
    except Exception:
        return None
    else:
        maybe_val = type_from_runtime(annotation, globals=globals, ctx=ctx)
        if (maybe_val != AnyValue(AnySource.incomplete_annotation)):
            return maybe_val
    return None
def type_from_annotations(annotations: Mapping[(str, object)], key: str, *, globals: Optional[Mapping[(str, object)]]=None, ctx: Optional[Context]=None) -> Optional[Value]:
    try:
        annotation = annotations[key]
    except Exception:
        return None
    else:
        maybe_val = type_from_runtime(annotation, globals=globals, ctx=ctx)
        if (maybe_val != AnyValue(AnySource.incomplete_annotation)):
            return maybe_val
    return None