Skip to content

πŸŽ› πŸ”Š A Python library for audio.

Flake.

Peter Sobotac7013b9f155
diff --git a/pedalboard/__init__.pyi b/pedalboard/__init__.pyi
index f62494a..b345a9c 100644
--- a/pedalboard/__init__.pyi
+++ b/pedalboard/__init__.pyi
@@ -48,7 +48,6 @@ class Plugin:
A generic audio processing plugin. Base class of all Pedalboard plugins.
"""
- def __init__(self) -> None: ...
def process(
self,
input_array: numpy.ndarray,
@@ -284,7 +283,6 @@ class IIRFilter(Plugin):
An abstract class that implements various kinds of infinite impulse response (IIR) filter designs. This should not be used directly; use :class:`HighShelfFilter`, :class:`LowShelfFilter`, or :class:`PeakFilter` directly instead.
"""
- def __init__(self) -> None: ...
pass
class HighpassFilter(Plugin):
@@ -338,7 +336,6 @@ class Invert(Plugin):
Inverting a signal may be useful to cancel out signals in many cases; for instance, ``Invert`` can be used with the ``Mix`` plugin to remove the original signal from an effects chain that contains multiple signals.
"""
- def __init__(self) -> None: ...
def __repr__(self) -> str: ...
pass
diff --git a/pedalboard/io/__init__.pyi b/pedalboard/io/__init__.pyi
index d6b5506..d895e15 100644
--- a/pedalboard/io/__init__.pyi
+++ b/pedalboard/io/__init__.pyi
@@ -97,7 +97,6 @@ class AudioFile:
o.write(i.read(1024))
"""
- def __init__(self) -> None: ...
@staticmethod
@typing.overload
def __new__(
diff --git a/pedalboard/utils/__init__.pyi b/pedalboard/utils/__init__.pyi
index 9e4c55b..0c08b44 100644
--- a/pedalboard/utils/__init__.pyi
+++ b/pedalboard/utils/__init__.pyi
@@ -18,7 +18,6 @@ class Chain(pedalboard_native.PluginContainer, pedalboard_native.Plugin):
"""
@typing.overload
- def __init__(self) -> None: ...
@typing.overload
def __init__(self, plugins: typing.List[pedalboard_native.Plugin]) -> None: ...
def __repr__(self) -> str: ...
@@ -51,7 +50,6 @@ class Mix(pedalboard_native.PluginContainer, pedalboard_native.Plugin):
"""
@typing.overload
- def __init__(self) -> None: ...
@typing.overload
def __init__(self, plugins: typing.List[pedalboard_native.Plugin]) -> None: ...
def __repr__(self) -> str: ...
diff --git a/tests/mypy_fixtures/readme_guitar.py b/tests/mypy_fixtures/readme_guitar.py
index 3f41550..2f7a8d4 100644
--- a/tests/mypy_fixtures/readme_guitar.py
+++ b/tests/mypy_fixtures/readme_guitar.py
@@ -1,7 +1,17 @@
# This file is not intended to be executed - it's intended to be used to ensure MyPy compatibility!
# Don't do import *! (It just makes this example smaller)
-from pedalboard import *
+from pedalboard import (
+ Pedalboard,
+ Compressor,
+ Gain,
+ Chorus,
+ LadderFilter,
+ Limiter,
+ Phaser,
+ Convolution,
+ Reverb,
+)
from pedalboard.io import AudioFile
# Read in a whole file, resampling to our desired sample rate: