Skip to content

Commit

Permalink
Internal.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 696262267
Change-Id: Ibe7082e9a859bbf1d8f6edec6986a759322279e4
GitOrigin-RevId: 82ea653753b36b38217caa74556caaaa57a34160
  • Loading branch information
DeepMind Team authored and alpiccioni committed Dec 4, 2024
1 parent 19a92ab commit dfeb2e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xmanager/xm/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ def __repr__(self) -> str:
return f'xm.Topology({self.name!r})'

def __eq__(self, other: 'Topology') -> bool:
if not isinstance(other, Topology):
return False
return self.name == other.name

def __hash__(self) -> int:
Expand Down

0 comments on commit dfeb2e4

Please sign in to comment.