Skip to content

Commit

Permalink
chore(internal): restructure imports (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Apr 23, 2024
1 parent 9fad441 commit 49e0044
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
7 changes: 5 additions & 2 deletions src/anthropic/resources/beta/tools/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import httpx

from .... import _legacy_response
from ....types import MessageStreamEvent
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
required_args,
Expand All @@ -22,7 +21,11 @@
from ...._base_client import (
make_request_options,
)
from ....types.beta.tools import ToolParam, ToolsBetaMessage, ToolsBetaMessageParam, message_create_params
from ....types.beta.tools import message_create_params
from ....types.message_stream_event import MessageStreamEvent
from ....types.beta.tools.tool_param import ToolParam
from ....types.beta.tools.tools_beta_message import ToolsBetaMessage
from ....types.beta.tools.tools_beta_message_param import ToolsBetaMessageParam

__all__ = ["Messages", "AsyncMessages"]

Expand Down
3 changes: 2 additions & 1 deletion src/anthropic/resources/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import httpx

from .. import _legacy_response
from ..types import Completion, completion_create_params
from ..types import completion_create_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
required_args,
Expand All @@ -22,6 +22,7 @@
from .._base_client import (
make_request_options,
)
from ..types.completion import Completion

__all__ = ["Completions", "AsyncCompletions"]

Expand Down
5 changes: 4 additions & 1 deletion src/anthropic/resources/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import httpx

from .. import _legacy_response
from ..types import Message, MessageParam, MessageStreamEvent, message_create_params
from ..types import message_create_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
required_args,
Expand All @@ -31,6 +31,9 @@
MessageStreamManager,
AsyncMessageStreamManager,
)
from ..types.message import Message
from ..types.message_param import MessageParam
from ..types.message_stream_event import MessageStreamEvent

__all__ = ["Messages", "AsyncMessages"]

Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/beta/tools/test_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from anthropic import Anthropic, AsyncAnthropic
from tests.utils import assert_matches_type
from anthropic.types.beta.tools import ToolsBetaMessage
from anthropic.types.beta.tools.tools_beta_message import ToolsBetaMessage

base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")

Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from anthropic import Anthropic, AsyncAnthropic
from tests.utils import assert_matches_type
from anthropic.types import Completion
from anthropic.types.completion import Completion

base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")

Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from anthropic import Anthropic, AsyncAnthropic
from tests.utils import assert_matches_type
from anthropic.types import Message
from anthropic.types.message import Message

base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")

Expand Down

0 comments on commit 49e0044

Please sign in to comment.