diff --git a/docs/v2_models.rst b/docs/v2_models.rst index 3b2ebd9f5..0aec9f798 100644 --- a/docs/v2_models.rst +++ b/docs/v2_models.rst @@ -38,9 +38,7 @@ Models .. autoclass:: Tweet() -.. class:: tweepy.ReferencedTweet - - :reference: https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/tweet +.. autoclass:: ReferencedTweet() .. class:: tweepy.User diff --git a/tweepy/tweet.py b/tweepy/tweet.py index c92de22fc..694191c4c 100644 --- a/tweepy/tweet.py +++ b/tweepy/tweet.py @@ -165,6 +165,20 @@ def __str__(self): class ReferencedTweet(HashableID, DataMapping): + """.. versionadded:: 4.0 + + Attributes + ---------- + data : dict + The JSON data representing the referenced Tweet. + id : int + The unique identifier of the referenced Tweet. + type : str + + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/tweet + """ __slots__ = ("data", "id", "type")