From: Harmon Date: Tue, 23 Feb 2021 03:21:52 +0000 (-0600) Subject: Rename Hashable to HashableID X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5b2dd086c2c5a08c3bf7be54400adfd823d19ea1;p=tweepy.git Rename Hashable to HashableID --- diff --git a/tweepy/mixins.py b/tweepy/mixins.py index 44fb030..9f01340 100644 --- a/tweepy/mixins.py +++ b/tweepy/mixins.py @@ -12,7 +12,7 @@ class EqualityComparableID: return NotImplemented -class Hashable(EqualityComparableID): +class HashableID(EqualityComparableID): __slots__ = () def __hash__(self): diff --git a/tweepy/models.py b/tweepy/models.py index bad2682..63bee04 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -4,7 +4,7 @@ from email.utils import parsedate_to_datetime -from tweepy.mixins import Hashable +from tweepy.mixins import HashableID class ResultSet(list): @@ -84,7 +84,7 @@ class Model: return f'{self.__class__.__name__}({", ".join(state)})' -class Status(Model, Hashable): +class Status(Model, HashableID): @classmethod def parse(cls, api, json): @@ -137,7 +137,7 @@ class Status(Model, Hashable): return self._api.create_favorite(self.id) -class User(Model, Hashable): +class User(Model, HashableID): @classmethod def parse(cls, api, json):