def eval_forward_ref(type_: ForwardRef) -> type:
    try:
        return type_._evaluate(core_schema.__dict__, None, set())
    except Exception:
        # For older 3.13 alphas: remove the third argument
        return type_._evaluate(core_schema.__dict__, None, recursive_guard=set())

def main():
    # ... 