From 57c4000ae0a282048f3cd019934f7625693b8aee Mon Sep 17 00:00:00 2001 From: Roman Chkhaidze Date: Mon, 10 Nov 2025 17:05:52 -0800 Subject: [PATCH] staging changes https://github.com/opentensor/bittensor/pull/3133 --- bittensor/core/chain_data/axon_info.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bittensor/core/chain_data/axon_info.py b/bittensor/core/chain_data/axon_info.py index 8df204e209..7f0410e7ea 100644 --- a/bittensor/core/chain_data/axon_info.py +++ b/bittensor/core/chain_data/axon_info.py @@ -52,20 +52,17 @@ def ip_str(self) -> str: return networking.ip__str__(self.ip_type, self.ip, self.port) def __eq__(self, other: "AxonInfo"): - if other is None: + if other is None or not isinstance(other, AxonInfo): return False - if ( + return ( self.version == other.version and self.ip == other.ip and self.port == other.port and self.ip_type == other.ip_type and self.coldkey == other.coldkey and self.hotkey == other.hotkey - ): - return True - - return False + ) def __str__(self): return f"AxonInfo( {self.ip_str()}, {self.hotkey}, {self.coldkey}, {self.version} )"