mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
Rm Github Import (#8257)
It's not a required dep but would break peoples builds --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
parent
68a906bb31
commit
479cc086ba
@ -1,12 +1,16 @@
|
|||||||
"""Util that calls GitHub."""
|
"""Util that calls GitHub."""
|
||||||
import json
|
from __future__ import annotations
|
||||||
from typing import Any, Dict, List, Optional
|
|
||||||
|
import json
|
||||||
|
from typing import TYPE_CHECKING, Any, Dict, List, Optional
|
||||||
|
|
||||||
from github.Issue import Issue
|
|
||||||
from pydantic import BaseModel, Extra, root_validator
|
from pydantic import BaseModel, Extra, root_validator
|
||||||
|
|
||||||
from langchain.utils import get_from_dict_or_env
|
from langchain.utils import get_from_dict_or_env
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from github.Issue import Issue
|
||||||
|
|
||||||
|
|
||||||
class GitHubAPIWrapper(BaseModel):
|
class GitHubAPIWrapper(BaseModel):
|
||||||
"""Wrapper for GitHub API."""
|
"""Wrapper for GitHub API."""
|
||||||
|
Loading…
Reference in New Issue
Block a user