mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge pull request #4249 from pypeclub/bugfix/creator_item_nequality
Publisher: Fix 'CreatorType' not equal for Python 2 DCCs
This commit is contained in:
commit
2b87c73119
1 changed files with 4 additions and 0 deletions
|
|
@ -788,6 +788,10 @@ class CreatorType:
|
|||
def __eq__(self, other):
|
||||
return self.name == str(other)
|
||||
|
||||
def __ne__(self, other):
|
||||
# This is implemented only because of Python 2
|
||||
return not self == other
|
||||
|
||||
|
||||
class CreatorTypes:
|
||||
base = CreatorType("base")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue