From: Harmon Date: Sun, 27 Feb 2022 20:43:15 +0000 (-0600) Subject: Add documentation for ReferencedTweet X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9a995b524eab52e49428b26aca51b51a04a84278;p=tweepy.git Add documentation for ReferencedTweet --- diff --git a/docs/v2_models.rst b/docs/v2_models.rst index 3b2ebd9..0aec9f7 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 c92de22..694191c 100644 --- a/tweepy/tweet.py +++ b/tweepy/tweet.py @@ -165,6 +165,20 @@ class Tweet(HashableID, DataMapping): 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")