Stub-only package containing type information for pydub
Project description
pydub-stubs
Pydub version: 0.24.1
pydub-stubs
provides type information for Pydub.
Only the public interface is guaranteed to be typed.
pip install pydub-stubs
Aniticipated Questions
Q: Why is AudioSegment.some_effect(...)
missing?
TL;DR: Import it as a function from pydub.effects
.
Pydub dynamically adds certain functions to AudioSegment
at runtime.
This is easy to type, but impossible to be 100% safe about.
A great example of why this can is difficult is pydub.scipy_effects
,
which registers two effects that are named identically to those in
pydub.effects
, but have different signatures. Importing this module
will override the previous effects, so now the signatures are wrong.
Q: What the hell is that version number?
major.minor.patch.stubs
, where major/minor/patch are the latest
supported Pydub version. The stubs version being last means pinning
to a specific Pydub version will always get the latest stubs available.
Changelog
Version 0.24.1.4
-
Improved signature of
AudioSegment.from_file
The keyword arguments for raw/PCM audio don't requireformat
to be set to eitherraw
orpcm
. -
Fix package exports
ExportsAudioSegment
from__init__.py
.
Previous versions
Version 0.24.1.3
- Fixed overloads of
AudioSegment.fade
Exactly two ofstart
,end
, andduration
must be given.
Version 0.24.1.2
-
Improved
AudioSegment.fade
Changed to use overloads to prevent invalid method calls. -
Improved
AudioSegment.from_mono_audiosegments
Use a positional-only parameter to ensure there's at least 1 argument.
Version 0.24.1.1
-
Fixed
AudioSegment.__init__
Use overloads to model correct parameters. -
Fixed
AudioSegment._spawn
Parameteroverrides
accepts a partial dictionary. -
Fixed
pydub.scipy_effects.high_pass_filter
Parameterorder
should beint
, notfloat
.
Version 0.24.1.0
Released
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pydub_stubs-0.24.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70baeb2bcb599ac6db7c8510af5c52c04ba637d8c9b03319399e2198cc9be721 |
|
MD5 | 226a482c37696e77ad43115f4903413f |
|
BLAKE2b-256 | cb50dcff35eef9e5889d1a7240c9013d5d9cb58f6f87173c915f28a0de29afad |