Skip to content

Commit

Permalink
Rename API.trends_closest to API.closest_trends
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jun 4, 2021
1 parent 68b33d7 commit 2e18162
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 @@ -224,7 +224,7 @@
+------------------------------------------+--------------------------------------+
| `GET trends/available`_ | :meth:`API.available_trends` |
+------------------------------------------+--------------------------------------+
| `GET trends/closest`_ | :meth:`API.trends_closest` |
| `GET trends/closest`_ | :meth:`API.closest_trends` |
+------------------------------------------+--------------------------------------+
| .. centered:: |Get trends near a location|_ |
+------------------------------------------+--------------------------------------+
Expand Down Expand Up @@ -592,7 +592,7 @@ Get locations with trending topics

.. automethod:: API.available_trends

.. automethod:: API.trends_closest
.. automethod:: API.closest_trends

Get trends near a location
--------------------------
Expand Down
4 changes: 2 additions & 2 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3663,8 +3663,8 @@ def available_trends(self, **kwargs):
return self.request('GET', 'trends/available', **kwargs)

@payload('json')
def trends_closest(self, lat, long, **kwargs):
"""trends_closest(lat, long)
def closest_trends(self, lat, long, **kwargs):
"""closest_trends(lat, long)
Returns the locations that Twitter has trending topic information for,
closest to a specified location.
Expand Down

0 comments on commit 2e18162

Please sign in to comment.