From 4912a7c33420099663015325a0b758926892eb8a Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 4 Jun 2021 07:11:15 -0500 Subject: [PATCH] Rename API.trends_place to API.get_place_trends --- docs/api.rst | 4 ++-- tweepy/api.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index 769b09a3f..de37c4a54 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -228,7 +228,7 @@ +------------------------------------------+--------------------------------------+ | .. centered:: |Get trends near a location|_ | +------------------------------------------+--------------------------------------+ - | `GET trends/place`_ | :meth:`API.trends_place` | + | `GET trends/place`_ | :meth:`API.get_place_trends` | +------------------------------------------+--------------------------------------+ | .. centered:: :ref:`Geo` | +------------------------------------------+--------------------------------------+ @@ -597,7 +597,7 @@ Get locations with trending topics Get trends near a location -------------------------- -.. automethod:: API.trends_place +.. automethod:: API.get_place_trends Geo === diff --git a/tweepy/api.py b/tweepy/api.py index a845d59ae..04f1dc327 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3706,8 +3706,8 @@ def closest_trends(self, lat, long, **kwargs): # Get trends near a location @payload('json') - def trends_place(self, id, **kwargs): - """trends_place(id *, exclude) + def get_place_trends(self, id, **kwargs): + """get_place_trends(id *, exclude) Returns the top 50 trending topics for a specific WOEID, if trending information is available for it.