From 68b33d7ea70bb9c2f7efc384482b3eb6af0807fa Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 4 Jun 2021 07:05:41 -0500 Subject: [PATCH] Rename API.trends_available to API.available_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 b40fc0c..317cacb 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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` | +------------------------------------------+--------------------------------------+ @@ -590,7 +590,7 @@ Trends Get locations with trending topics ---------------------------------- -.. automethod:: API.trends_available +.. automethod:: API.available_trends .. automethod:: API.trends_closest diff --git a/tweepy/api.py b/tweepy/api.py index b3c9bde..1ceae90 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3642,8 +3642,8 @@ class API: # 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 -- 2.25.1