We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 842d115 commit 2f0bd7cCopy full SHA for 2f0bd7c
graphene/core/fields.py
@@ -184,7 +184,8 @@ def __repr__(self):
184
def __eq__(self, other):
185
# Needed for @total_ordering
186
if isinstance(other, Field):
187
- return self.creation_counter == other.creation_counter
+ return self.creation_counter == other.creation_counter and \
188
+ self.object_type == other.object_type
189
return NotImplemented
190
191
def __lt__(self, other):
@@ -194,7 +195,7 @@ def __lt__(self, other):
194
195
196
197
def __hash__(self):
- return hash((self.creation_counter))
198
+ return hash((self.creation_counter, self.object_type))
199
200
def __copy__(self):
201
# We need to avoid hitting __reduce__, so define this
0 commit comments