Skip to content

Commit

Permalink
Add documentation for ReferencedTweet
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 27, 2022
1 parent b9cef72 commit 9a995b5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 1 addition & 3 deletions docs/v2_models.rst
Expand Up @@ -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

Expand Down
14 changes: 14 additions & 0 deletions tweepy/tweet.py
Expand Up @@ -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")

Expand Down

0 comments on commit 9a995b5

Please sign in to comment.