Skip to content

Commit df6bac8

Browse files
committed
Fix pylint config and reformat
Signed-off-by: rany2 <[email protected]>
1 parent 09956e3 commit df6bac8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pylintrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ min-public-methods=2
307307
[EXCEPTIONS]
308308

309309
# Exceptions that will emit a warning when caught.
310-
overgeneral-exceptions=BaseException,
311-
Exception
310+
overgeneral-exceptions=builtins.BaseException,
311+
builtins.Exception
312312

313313

314314
[FORMAT]

src/edge_tts/communicate.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Communicate package.
33
"""
44

5-
65
import json
76
import re
87
import ssl
@@ -152,7 +151,9 @@ def split_text_by_byte_length(
152151
yield new_text
153152

154153

155-
def mkssml(text: Union[str, bytes], voice: str, rate: str, volume: str, pitch: str) -> str:
154+
def mkssml(
155+
text: Union[str, bytes], voice: str, rate: str, volume: str, pitch: str
156+
) -> str:
156157
"""
157158
Creates a SSML string from the given parameters.
158159

src/edge_tts/util.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Main package.
33
"""
44

5-
65
import argparse
76
import asyncio
87
import sys
@@ -60,9 +59,9 @@ async def _run_tts(args: Any) -> None:
6059
pitch=args.pitch,
6160
)
6261
subs: SubMaker = SubMaker()
63-
with open(
64-
args.write_media, "wb"
65-
) if args.write_media else sys.stdout.buffer as audio_file:
62+
with (
63+
open(args.write_media, "wb") if args.write_media else sys.stdout.buffer
64+
) as audio_file:
6665
async for chunk in tts.stream():
6766
if chunk["type"] == "audio":
6867
audio_file.write(chunk["data"])

0 commit comments

Comments
 (0)