Skip to content

Commit

Permalink
Rename API.trends_available to API.available_trends
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jun 4, 2021
1 parent ea26a29 commit 68b33d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
+------------------------------------------+--------------------------------------+
| .. centered:: |Get locations with trending topics|_ |
+------------------------------------------+--------------------------------------+
| `GET trends/available`_ | :meth:`API.trends_available` |
| `GET trends/available`_ | :meth:`API.available_trends` |
+------------------------------------------+--------------------------------------+
| `GET trends/closest`_ | :meth:`API.trends_closest` |
+------------------------------------------+--------------------------------------+
Expand Down Expand Up @@ -590,7 +590,7 @@ Trends
Get locations with trending topics
----------------------------------

.. automethod:: API.trends_available
.. automethod:: API.available_trends

.. automethod:: API.trends_closest

Expand Down
4 changes: 2 additions & 2 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3642,8 +3642,8 @@ def chunked_upload_init(self, total_bytes, media_type, *,
# Get locations with trending topics

@payload('json')
def trends_available(self, **kwargs):
"""trends_available()
def available_trends(self, **kwargs):
"""available_trends()
Returns the locations that Twitter has trending topic information for.
The response is an array of "locations" that encode the location's
Expand Down

0 comments on commit 68b33d7

Please sign in to comment.