Fixed all problems pointed out by pylint

pull/1271/head
John Toniutti 3 years ago
parent e746efe5fe
commit 6d895906dc
No known key found for this signature in database
GPG Key ID: 3C5434E3920EE1E1

@ -79,6 +79,7 @@ vocals: Final[tuple] = (
class TikTok:
"""TikTok Text-to-Speech Wrapper"""
max_chars: Final[int] = 300
BASE_URL: Final[
str
] = "https://api16-normal-c-useast1a.tiktokv.com/media/api/text/speech/invoke/"
@ -139,7 +140,7 @@ class TikTok:
@staticmethod
def random_voice():
return random.choice(eng_voices["human"])
return random.choice(eng_voices)
class TikTokTTSException(Exception):

Loading…
Cancel
Save