Skip to content

Commit f8be256

Browse files
committed
fix lint
1 parent 7b50c11 commit f8be256

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydantic_ai_slim/pydantic_ai/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import pydantic_core
1414
from genai_prices import calc_price, types as genai_types
1515
from opentelemetry._events import Event # pyright: ignore[reportPrivateImportUsage]
16-
from typing_extensions import Self, deprecated
16+
from typing_extensions import deprecated
1717

1818
from . import _otel_messages, _utils
1919
from ._utils import generate_tool_call_id as _generate_tool_call_id, now_utc as _now_utc
@@ -517,7 +517,7 @@ def narrow_type(bc: BinaryContent) -> BinaryContent | BinaryImage:
517517
return bc # pragma: no cover
518518

519519
@classmethod
520-
def from_data_uri(cls, data_uri: str) -> Self:
520+
def from_data_uri(cls, data_uri: str) -> BinaryContent:
521521
"""Create a `BinaryContent` from a data URI."""
522522
prefix = 'data:'
523523
if not data_uri.startswith(prefix):

0 commit comments

Comments
 (0)