Skip to content

Commit f94fddd

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore(internal): remove some duplicated imports (#1946)
1 parent 0ae6f6b commit f94fddd

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

src/openai/resources/beta/beta.py

+9-11
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 .chat.chat import Chat, AsyncChat
157
from .assistants import (
@@ -21,16 +13,22 @@
2113
AsyncAssistantsWithStreamingResponse,
2214
)
2315
from ..._resource import SyncAPIResource, AsyncAPIResource
24-
from .vector_stores import (
16+
from .threads.threads import (
17+
Threads,
18+
AsyncThreads,
19+
ThreadsWithRawResponse,
20+
AsyncThreadsWithRawResponse,
21+
ThreadsWithStreamingResponse,
22+
AsyncThreadsWithStreamingResponse,
23+
)
24+
from .vector_stores.vector_stores import (
2525
VectorStores,
2626
AsyncVectorStores,
2727
VectorStoresWithRawResponse,
2828
AsyncVectorStoresWithRawResponse,
2929
VectorStoresWithStreamingResponse,
3030
AsyncVectorStoresWithStreamingResponse,
3131
)
32-
from .threads.threads import Threads, AsyncThreads
33-
from .vector_stores.vector_stores import VectorStores, AsyncVectorStores
3432

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

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

+8-9
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@
99
import httpx
1010

1111
from .... import _legacy_response
12-
from .runs import (
13-
Runs,
14-
AsyncRuns,
15-
RunsWithRawResponse,
16-
AsyncRunsWithRawResponse,
17-
RunsWithStreamingResponse,
18-
AsyncRunsWithStreamingResponse,
19-
)
2012
from .messages import (
2113
Messages,
2214
AsyncMessages,
@@ -31,7 +23,14 @@
3123
maybe_transform,
3224
async_maybe_transform,
3325
)
34-
from .runs.runs import Runs, AsyncRuns
26+
from .runs.runs import (
27+
Runs,
28+
AsyncRuns,
29+
RunsWithRawResponse,
30+
AsyncRunsWithRawResponse,
31+
RunsWithStreamingResponse,
32+
AsyncRunsWithStreamingResponse,
33+
)
3534
from ...._compat import cached_property
3635
from ...._resource import SyncAPIResource, AsyncAPIResource
3736
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper

src/openai/resources/fine_tuning/fine_tuning.py

+2-3
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)