Add __hash__ for Country
This commit is contained in:
@@ -85,6 +85,9 @@ class Country(object):
|
||||
else:
|
||||
return NotImplemented
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.code)
|
||||
|
||||
def __ne__(self, other):
|
||||
return not (self == other)
|
||||
|
||||
|
Reference in New Issue
Block a user