diff --git a/libs/langchain/langchain/utilities/github.py b/libs/langchain/langchain/utilities/github.py index 8a8b30b4264..8bc845363d9 100644 --- a/libs/langchain/langchain/utilities/github.py +++ b/libs/langchain/langchain/utilities/github.py @@ -1,12 +1,16 @@ """Util that calls GitHub.""" -import json -from typing import Any, Dict, List, Optional +from __future__ import annotations + +import json +from typing import TYPE_CHECKING, Any, Dict, List, Optional -from github.Issue import Issue from pydantic import BaseModel, Extra, root_validator from langchain.utils import get_from_dict_or_env +if TYPE_CHECKING: + from github.Issue import Issue + class GitHubAPIWrapper(BaseModel): """Wrapper for GitHub API."""