Merge pull request #4249 from pypeclub/bugfix/creator_item_nequality

Publisher: Fix 'CreatorType' not equal for Python 2 DCCs
This commit is contained in:
Jakub Trllo 2022-12-20 15:08:36 +01:00 committed by GitHub
commit 2b87c73119
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")