From 2b2ed0a45bfe2077dd1e0b3c0e91de2557aa4a36 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 8 Feb 2021 02:45:23 -0600 Subject: [PATCH] Stop allowing positional arguments for API.retweets_of_me --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index fdd6f55..2a3b993 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -295,11 +295,11 @@ class API: @pagination(mode='id') @payload('status', list=True) - def retweets_of_me(self, *args, **kwargs): + def retweets_of_me(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweets_of_me """ return self.request( - 'GET', 'statuses/retweets_of_me', *args, endpoint_parameters=( + 'GET', 'statuses/retweets_of_me', endpoint_parameters=( 'since_id', 'max_id', 'count' ), **kwargs ) -- 2.25.1