projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd93b6d
)
use id as hash since its an integer
author
mohammed chamma
<hms.mohammed@gmail.com>
Wed, 30 Dec 2020 23:39:56 +0000
(18:39 -0500)
committer
GitHub
<noreply@github.com>
Wed, 30 Dec 2020 23:39:56 +0000
(18:39 -0500)
Co-authored-by: Harmon <Harmon758@gmail.com>
tweepy/models.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/models.py
b/tweepy/models.py
index aceb398427a29fb212cb68347da0247ee7ac9c5b..ac0de530a85bab8ab23595efd7b79c1b944b67d6 100644
(file)
--- a/
tweepy/models.py
+++ b/
tweepy/models.py
@@
-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)))