Skip to content

Commit

Permalink
Stop allowing positional arguments for API.lists_all
Browse files Browse the repository at this point in the history
Also improve endpoint parameters order to match Twitter API documentation
  • Loading branch information
Harmon758 committed Feb 14, 2021
1 parent 8b3b4fb commit 3cd0058
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,12 +924,12 @@ def update_list(self, **kwargs):
)

@payload('list', list=True)
def lists_all(self, *args, **kwargs):
def lists_all(self, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-list
"""
return self.request(
'GET', 'lists/list', *args, endpoint_parameters=(
'screen_name', 'user_id', 'reverse'
'GET', 'lists/list', endpoint_parameters=(
'user_id', 'screen_name', 'reverse'
), **kwargs
)

Expand Down

0 comments on commit 3cd0058

Please sign in to comment.