From 5b2dd086c2c5a08c3bf7be54400adfd823d19ea1 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 22 Feb 2021 21:21:52 -0600 Subject: [PATCH] Rename Hashable to HashableID --- tweepy/mixins.py | 2 +- tweepy/models.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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): -- 2.25.1