Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused imports #176

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions aleph_alpha_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
"ImageControl",
"ImagePromptItemExplanation",
"ImageScore",
"load_base64_from_file",
"load_base64_from_url",
"POOLING_OPTIONS",
"Prompt",
"PromptTemplate",
Expand All @@ -102,4 +104,5 @@
"TokenPromptItemExplanation",
"Tokens",
"TokenScore",
"__version__",
]
4 changes: 0 additions & 4 deletions aleph_alpha_client/aleph_alpha_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
Optional,
Dict,
Sequence,
Tuple,
Type,
Union,
Iterator,
)
import aiohttp
import asyncio
Expand All @@ -29,8 +27,6 @@
from aleph_alpha_client.explanation import (
ExplanationRequest,
ExplanationResponse,
ExplanationRequest,
ExplanationResponse,
)
from aleph_alpha_client.summarization import SummarizationRequest, SummarizationResponse
from aleph_alpha_client.qa import QaRequest, QaResponse
Expand Down
2 changes: 1 addition & 1 deletion aleph_alpha_client/detokenization.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, asdict
from typing import Any, Dict, List, Mapping, Optional, Sequence
from typing import Any, Dict, Mapping, Sequence


@dataclass(frozen=True)
Expand Down
3 changes: 0 additions & 3 deletions aleph_alpha_client/explanation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
Union,
)

# Import Literal with Python 3.7 fallback
from typing_extensions import Literal

from aleph_alpha_client import Text

from aleph_alpha_client.prompt import ControlTokenOverlap, Image, Prompt, PromptItem
Expand Down
3 changes: 1 addition & 2 deletions aleph_alpha_client/prompt_template.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from re import finditer
import re
from typing import Dict, Iterable, Mapping, NewType, Sequence, Tuple, Union
from typing import Dict, Iterable, Mapping, NewType, Tuple, Union
from uuid import UUID, uuid4
from liquid import Template

Expand Down
2 changes: 1 addition & 1 deletion aleph_alpha_client/qa.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import asdict, dataclass
from typing import Any, Dict, Mapping, Optional, Sequence
from typing import Any, Mapping, Optional, Sequence

from aleph_alpha_client.document import Document

Expand Down
2 changes: 1 addition & 1 deletion aleph_alpha_client/summarization.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import asdict, dataclass
from typing import Any, Dict, Mapping, Sequence
from typing import Any, Mapping

from aleph_alpha_client.document import Document

Expand Down