From: Harmon Date: Mon, 8 Feb 2021 08:20:46 +0000 (-0600) Subject: Stop allowing positional arguments for API.home_timeline X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b91be220928d1cb2996a5c71ef16a13c58375d4a;p=tweepy.git Stop allowing positional arguments for API.home_timeline --- diff --git a/tweepy/api.py b/tweepy/api.py index 6434846..59fe255 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -249,11 +249,11 @@ class API: @pagination(mode='id') @payload('status', list=True) - def home_timeline(self, *args, **kwargs): + def home_timeline(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-home_timeline """ return self.request( - 'GET', 'statuses/home_timeline', *args, endpoint_parameters=( + 'GET', 'statuses/home_timeline', endpoint_parameters=( 'count', 'since_id', 'max_id', 'trim_user', 'exclude_replies', 'include_entities' ), **kwargs