Skip to content

Commit afdf9df

Browse files
committed
Implement __hash__ for GraphQLError
1 parent 72dc035 commit afdf9df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graphql/error/graphql_error.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ def __eq__(self, other):
165165
)
166166
)
167167

168+
def __hash__(self):
169+
return hash(self.original_error)
170+
168171
def __ne__(self, other):
169172
return not self.__eq__(other)
170173

0 commit comments

Comments
 (0)