[library] Improve infer_schema error message when future annotations …