From 7a74863b66aeffdcd1157d8abf07df5f907cb0be Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 15 Feb 2021 02:08:22 -0600 Subject: [PATCH] Stop allowing positional arguments for API.trends_available --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 8643365..9501227 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1109,10 +1109,10 @@ class API: ) @payload('json') - def trends_available(self, *args, **kwargs): + def trends_available(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/trends/locations-with-trending-topics/api-reference/get-trends-available """ - return self.request('GET', 'trends/available', *args, **kwargs) + return self.request('GET', 'trends/available', **kwargs) @payload('json') def trends_place(self, *args, **kwargs): -- 2.25.1