Skip to content

Commit f4a6950

Browse files
committed
fml
1 parent 7249061 commit f4a6950

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

pkg-py/src/shinychat/_chat_normalize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ def _(chunk: ChatCompletionChunk) -> ChatMessage:
180180
# ------------------------------------------------------------------
181181

182182
try:
183-
from anthropic.types import (
184-
Message as AnthropicMessage, # pyright: ignore[reportMissingImports]
183+
from anthropic.types import ( # pyright: ignore[reportMissingImports]
184+
Message as AnthropicMessage,
185185
)
186186

187187
@get_message_content.register

pkg-py/src/shinychat/_chat_provider_types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from ._chat_types import ChatMessageDict
55

66
if TYPE_CHECKING:
7-
from anthropic.types import (
8-
MessageParam as AnthropicMessage, # pyright: ignore[reportMissingImports]
7+
from anthropic.types import ( # pyright: ignore[reportMissingImports]
8+
MessageParam as AnthropicMessage,
99
)
1010
from langchain_core.messages import AIMessage, HumanMessage, SystemMessage
1111
from ollama import Message as OllamaMessage
@@ -69,8 +69,8 @@ def as_provider_message(
6969

7070

7171
def as_anthropic_message(message: ChatMessageDict) -> "AnthropicMessage":
72-
from anthropic.types import (
73-
MessageParam as AnthropicMessage, # pyright: ignore[reportMissingImports]
72+
from anthropic.types import ( # pyright: ignore[reportMissingImports]
73+
MessageParam as AnthropicMessage,
7474
)
7575

7676
if message["role"] == "system":

pkg-py/tests/pytest/test_chat.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,14 @@ def test_anthropic_normalization():
258258
TextBlock,
259259
Usage,
260260
)
261-
from anthropic.types.message import (
262-
Message, # pyright: ignore[reportMissingImports]
261+
from anthropic.types.message import ( # pyright: ignore[reportMissingImports]
262+
Message,
263263
)
264-
from anthropic.types.raw_content_block_delta_event import (
265-
RawContentBlockDeltaEvent, # pyright: ignore[reportMissingImports]
264+
from anthropic.types.raw_content_block_delta_event import ( # pyright: ignore[reportMissingImports]
265+
RawContentBlockDeltaEvent,
266266
)
267-
from anthropic.types.text_delta import (
268-
TextDelta, # pyright: ignore[reportMissingImports]
267+
from anthropic.types.text_delta import ( # pyright: ignore[reportMissingImports]
268+
TextDelta,
269269
)
270270

271271
# Make sure return type of Anthropic().messages.create() hasn't changed
@@ -419,8 +419,8 @@ def test_as_anthropic_message():
419419
AsyncMessages,
420420
Messages,
421421
)
422-
from anthropic.types import (
423-
MessageParam, # pyright: ignore[reportMissingImports]
422+
from anthropic.types import ( # pyright: ignore[reportMissingImports]
423+
MessageParam,
424424
)
425425
from shinychat._chat_provider_types import as_anthropic_message
426426

0 commit comments

Comments
 (0)