Skip to content

Commit

Permalink
fix code format; fix arg name in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Sep 12, 2024
1 parent 9460b39 commit 1ba079a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/atproto_client/client/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ async def send_video(
Args:
text: Text of the post.
video: Binary video to attach.
video_alts: Text version of the video.
video_alt: Text version of the video.
profile_identify: Handle or DID. Where to send post.
reply_to: Root and parent of the post to reply to.
langs: List of used languages in the post.
Expand Down
10 changes: 5 additions & 5 deletions packages/atproto_client/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,10 @@ def send_video(
video: bytes,
video_alt: t.Optional[str] = None,
profile_identify: t.Optional[str] = None,
reply_to: t.Optional["models.AppBskyFeedPost.ReplyRef"] = None,
reply_to: t.Optional['models.AppBskyFeedPost.ReplyRef'] = None,
langs: t.Optional[t.List[str]] = None,
facets: t.Optional[t.List["models.AppBskyRichtextFacet.Main"]] = None,
) -> "models.AppBskyFeedPost.CreateRecordResponse":
facets: t.Optional[t.List['models.AppBskyRichtextFacet.Main']] = None,
) -> 'models.AppBskyFeedPost.CreateRecordResponse':
"""Send post with attached video.
Note:
Expand All @@ -297,7 +297,7 @@ def send_video(
Args:
text: Text of the post.
video: Binary video to attach.
video_alts: Text version of the video.
video_alt: Text version of the video.
profile_identify: Handle or DID. Where to send post.
reply_to: Root and parent of the post to reply to.
langs: List of used languages in the post.
Expand All @@ -310,7 +310,7 @@ def send_video(
:class:`atproto.exceptions.AtProtocolError`: Base exception.
"""
if video_alt is None:
video_alt = ""
video_alt = ''

upload = self.upload_blob(video)

Expand Down

0 comments on commit 1ba079a

Please sign in to comment.