From a00b2bd707476782849ee757da4cc3de951be0a8 Mon Sep 17 00:00:00 2001 From: Gilles Boccon-Gibod Date: Thu, 29 May 2025 17:24:32 -0400 Subject: [PATCH] hotfix --- bumble/a2dp.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bumble/a2dp.py b/bumble/a2dp.py index f76ea9b..ffcee46 100644 --- a/bumble/a2dp.py +++ b/bumble/a2dp.py @@ -480,12 +480,10 @@ class OpusMediaCodecInformation(VendorSpecificMediaCodecInformation): SF_48000 = 1 << 0 @classmethod - def from_int( - cls, sampling_frequency: int - ) -> OpusMediaCodecInformation.SamplingFrequency: + def from_int(cls, sampling_frequency: int) -> Self: if sampling_frequency != 48000: raise ValueError("no such sampling frequency") - return cls.SF_48000 + return cls(1) VENDOR_ID: ClassVar[int] = 0x000000E0 CODEC_ID: ClassVar[int] = 0x0001