From: Harmon Date: Mon, 8 Feb 2021 08:40:28 +0000 (-0600) Subject: Stop allowing positional arguments for API.user_timeline X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0ef964f454a0e9111c1933aca13ec55c2bcbe2c3;p=tweepy.git Stop allowing positional arguments for API.user_timeline --- diff --git a/tweepy/api.py b/tweepy/api.py index 4da6478..36ba1e2 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -272,11 +272,11 @@ class API: @pagination(mode='id') @payload('status', list=True) - def user_timeline(self, *args, **kwargs): + def user_timeline(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-user_timeline """ return self.request( - 'GET', 'statuses/user_timeline', *args, endpoint_parameters=( + 'GET', 'statuses/user_timeline', endpoint_parameters=( 'user_id', 'screen_name', 'since_id', 'count', 'max_id', 'trim_user', 'exclude_replies', 'include_rts' ), **kwargs