Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausHolbechArista committed Oct 22, 2024
1 parent 0142915 commit 9a28690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-avd/pyavd/_schema/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AvdBase:

def __eq__(self, other: object) -> bool:
"""Compare two instances of AvdBase by comparing their repr."""
if isinstance(other, Self):
if isinstance(other, self.__class__):
return repr(self) == repr(other)
return super().__eq__(other)

Expand Down

0 comments on commit 9a28690

Please sign in to comment.