Skip to content

Commit

Permalink
style: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
moldhouse committed Aug 9, 2024
1 parent bb77a99 commit 0b90633
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 12 deletions.
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

0 comments on commit 0b90633

Please sign in to comment.