Skip to content

Commit

Permalink
Stop allowing positional arguments for API.user_timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 8, 2021
1 parent cf9845d commit 0ef964f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ def statuses_lookup(self, id, **kwargs):

@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
Expand Down

0 comments on commit 0ef964f

Please sign in to comment.