Skip to content

Commit feabce7

Browse files
author
Test
committed
add __hash__ to HttpQueryError
1 parent 9486fef commit feabce7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graphql_server/error.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ def __eq__(self, other):
1111
other.status_code == self.status_code and \
1212
other.message == self.message and \
1313
other.headers == self.headers
14+
15+
def __hash__(self):
16+
return hash((self.status_code, self.message, self.headers))

0 commit comments

Comments
 (0)