Skip to content

Commit af36374

Browse files
committed
chg: Add more recent pydub-ng for python > 3.9
1 parent dd04fa4 commit af36374

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

playwrightcapture/capture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
BROWSER = Literal['chromium', 'firefox', 'webkit']
6161

6262
try:
63-
from pydub import AudioSegment # type: ignore[attr-defined]
63+
from pydub import AudioSegment
6464
from speech_recognition import Recognizer, AudioFile
6565
CAN_SOLVE_CAPTCHA = True
6666
except ImportError:

poetry.lock

Lines changed: 23 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ classifiers=[
4343

4444
[project.optional-dependencies]
4545
recaptcha = [
46-
"pydub (>=0.25.1)",
46+
"pydub (>=0.25.1) ; python_version < \"3.10\"",
47+
"pydub-ng (>=0.2.0) ; python_version >= \"3.10\"",
4748
"SpeechRecognition (>=3.14.3)"
4849
]
4950

0 commit comments

Comments
 (0)