use id as hash since its an integer
authormohammed chamma <hms.mohammed@gmail.com>
Wed, 30 Dec 2020 23:39:56 +0000 (18:39 -0500)
committerGitHub <noreply@github.com>
Wed, 30 Dec 2020 23:39:56 +0000 (18:39 -0500)
Co-authored-by: Harmon <Harmon758@gmail.com>
tweepy/models.py

index aceb398427a29fb212cb68347da0247ee7ac9c5b..ac0de530a85bab8ab23595efd7b79c1b944b67d6 100644 (file)
@@ -227,7 +227,7 @@ class User(Model):
     
     def __hash__(self):
         if hasattr(self, 'id'):
-            return hash(self.id)
+            return self.id
         else:
             raise TypeError('unhashable type: {} (no id attribute)'.format(type(self)))