Skip to content

Commit 22ef350

Browse files
chore(internal): remove some duplicated imports (#1946)
1 parent 11be09a commit 22ef350

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

src/openai/resources/beta/beta.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22

33
from __future__ import annotations
44

5-
from .threads import (
6-
Threads,
7-
AsyncThreads,
8-
ThreadsWithRawResponse,
9-
AsyncThreadsWithRawResponse,
10-
ThreadsWithStreamingResponse,
11-
AsyncThreadsWithStreamingResponse,
12-
)
135
from ..._compat import cached_property
146
from .assistants import (
157
Assistants,
@@ -20,16 +12,22 @@
2012
AsyncAssistantsWithStreamingResponse,
2113
)
2214
from ..._resource import SyncAPIResource, AsyncAPIResource
23-
from .vector_stores import (
15+
from .threads.threads import (
16+
Threads,
17+
AsyncThreads,
18+
ThreadsWithRawResponse,
19+
AsyncThreadsWithRawResponse,
20+
ThreadsWithStreamingResponse,
21+
AsyncThreadsWithStreamingResponse,
22+
)
23+
from .vector_stores.vector_stores import (
2424
VectorStores,
2525
AsyncVectorStores,
2626
VectorStoresWithRawResponse,
2727
AsyncVectorStoresWithRawResponse,
2828
VectorStoresWithStreamingResponse,
2929
AsyncVectorStoresWithStreamingResponse,
3030
)
31-
from .threads.threads import Threads, AsyncThreads
32-
from .vector_stores.vector_stores import VectorStores, AsyncVectorStores
3331

3432
__all__ = ["Beta", "AsyncBeta"]
3533

src/openai/resources/beta/threads/threads.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
import httpx
99

1010
from .... import _legacy_response
11-
from .runs import (
12-
Runs,
13-
AsyncRuns,
14-
RunsWithRawResponse,
15-
AsyncRunsWithRawResponse,
16-
RunsWithStreamingResponse,
17-
AsyncRunsWithStreamingResponse,
18-
)
1911
from .messages import (
2012
Messages,
2113
AsyncMessages,
@@ -30,7 +22,14 @@
3022
maybe_transform,
3123
async_maybe_transform,
3224
)
33-
from .runs.runs import Runs, AsyncRuns
25+
from .runs.runs import (
26+
Runs,
27+
AsyncRuns,
28+
RunsWithRawResponse,
29+
AsyncRunsWithRawResponse,
30+
RunsWithStreamingResponse,
31+
AsyncRunsWithStreamingResponse,
32+
)
3433
from ...._compat import cached_property
3534
from ...._resource import SyncAPIResource, AsyncAPIResource
3635
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper

src/openai/resources/fine_tuning/fine_tuning.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

33
from __future__ import annotations
44

5-
from .jobs import (
5+
from ..._compat import cached_property
6+
from .jobs.jobs import (
67
Jobs,
78
AsyncJobs,
89
JobsWithRawResponse,
910
AsyncJobsWithRawResponse,
1011
JobsWithStreamingResponse,
1112
AsyncJobsWithStreamingResponse,
1213
)
13-
from ..._compat import cached_property
14-
from .jobs.jobs import Jobs, AsyncJobs
1514
from ..._resource import SyncAPIResource, AsyncAPIResource
1615

1716
__all__ = ["FineTuning", "AsyncFineTuning"]

0 commit comments

Comments
 (0)