From ad4bb1578b5b25895f29db72a20343f4a2e758c8 Mon Sep 17 00:00:00 2001 From: Josh Wu Date: Wed, 11 Mar 2026 21:41:48 +0800 Subject: [PATCH] Make ConnectionPHY dataclass --- bumble/core.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bumble/core.py b/bumble/core.py index 3cc6d0a..65ef251 100644 --- a/bumble/core.py +++ b/bumble/core.py @@ -2116,13 +2116,10 @@ class AdvertisingData: # ----------------------------------------------------------------------------- # Connection PHY # ----------------------------------------------------------------------------- +@dataclasses.dataclass class ConnectionPHY: - def __init__(self, tx_phy, rx_phy): - self.tx_phy = tx_phy - self.rx_phy = rx_phy - - def __str__(self): - return f'ConnectionPHY(tx_phy={self.tx_phy}, rx_phy={self.rx_phy})' + tx_phy: int + rx_phy: int # -----------------------------------------------------------------------------