Skip to content

Commit 69855a6

Browse files
committed
__radd__
1 parent 4994a87 commit 69855a6

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

open_dubbing/pydub_audio_segment.py

-9
Original file line numberDiff line numberDiff line change
@@ -340,15 +340,6 @@ def __add__(self, arg):
340340
else:
341341
return self.apply_gain(arg)
342342

343-
def __radd__(self, rarg):
344-
"""
345-
Permit use of sum() builtin with an iterable of AudioSegments
346-
"""
347-
if rarg == 0:
348-
return self
349-
raise TypeError("Gains must be the second addend after the "
350-
"AudioSegment")
351-
352343
def __sub__(self, arg):
353344
if isinstance(arg, AudioSegment):
354345
raise TypeError("AudioSegment objects can't be subtracted from "

0 commit comments

Comments
 (0)