mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
added more conditions for comparison
This commit is contained in:
parent
06222e727b
commit
36df58aba1
1 changed files with 6 additions and 1 deletions
|
|
@ -154,7 +154,12 @@ class AbtractAttrDef(object):
|
|||
def __eq__(self, other):
|
||||
if not isinstance(other, self.__class__):
|
||||
return False
|
||||
return self.key == other.key
|
||||
return (
|
||||
self.key == other.key
|
||||
and self.hidden == other.hidden
|
||||
and self.default == other.default
|
||||
and self.disabled == other.disabled
|
||||
)
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self.__eq__(other)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue