From 3b20db6c6a33e9b9b00c40f595b1666b37258273 Mon Sep 17 00:00:00 2001 From: ikaroskun Date: Fri, 1 Mar 2024 16:16:28 +0800 Subject: [PATCH] style(black): :art: format code --- pytiktok/business_account_api.py | 12 +++++++++--- pytiktok/kit_api.py | 1 + pytiktok/models/kit.py | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pytiktok/business_account_api.py b/pytiktok/business_account_api.py index 923dacf..b146cca 100644 --- a/pytiktok/business_account_api.py +++ b/pytiktok/business_account_api.py @@ -392,7 +392,9 @@ def get_comment_replies( if max_count is not None: params["max_count"] = max_count - resp = self._request(verb="GET", path="business/comment/reply/list/", params=params) + resp = self._request( + verb="GET", path="business/comment/reply/list/", params=params + ) data = self.parse_response(resp) return ( data @@ -443,7 +445,9 @@ def create_reply( "text": text, } - resp = self._request(verb="POST", path="business/comment/reply/create/", json=data) + resp = self._request( + verb="POST", path="business/comment/reply/create/", json=data + ) data = self.parse_response(resp) return ( data @@ -572,7 +576,9 @@ def get_hashtag_suggestions( "keyword": keyword, "language": language, } - resp = self._request(verb="GET", path="business/hashtag/suggestion/", params=data) + resp = self._request( + verb="GET", path="business/hashtag/suggestion/", params=data + ) data = self.parse_response(resp) return ( data diff --git a/pytiktok/kit_api.py b/pytiktok/kit_api.py index 0ca8d98..23bae8f 100644 --- a/pytiktok/kit_api.py +++ b/pytiktok/kit_api.py @@ -1,6 +1,7 @@ """ Api impl for tiktok developer """ + import random import string from typing import Optional, List, Tuple, Union, IO diff --git a/pytiktok/models/kit.py b/pytiktok/models/kit.py index 5ca585b..b224718 100644 --- a/pytiktok/models/kit.py +++ b/pytiktok/models/kit.py @@ -1,6 +1,7 @@ """ Models for TikTok kit api. """ + from dataclasses import dataclass, field from typing import Optional, List