Skip to content

Commit 9642d9e

Browse files
committed
remove Self
1 parent aa11f5d commit 9642d9e

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
@@ -9,7 +9,7 @@
99
from mimetypes import guess_type
1010
from os import PathLike
1111
from pathlib import Path
12-
from typing import TYPE_CHECKING, Annotated, Any, Literal, Self, TypeAlias, cast, overload
12+
from typing import TYPE_CHECKING, Annotated, Any, Literal, TypeAlias, cast, overload
1313

1414
import pydantic
1515
import pydantic_core
@@ -1075,7 +1075,7 @@ def has_content(self) -> bool:
10751075
return bool(self.content.data)
10761076

10771077
@classmethod
1078-
def from_path(cls, path: PathLike[str]) -> Self:
1078+
def from_path(cls, path: PathLike[str]) -> FilePart:
10791079
"""Create a `BinaryContent` from a path.
10801080
10811081
Defaults to 'application/octet-stream' if the media type cannot be inferred.

0 commit comments

Comments
 (0)