Skip to content

Commit

Permalink
Stop allowing positional arguments for API.saved_searches
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 14, 2021
1 parent f55efcf commit c5f5b4b
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 @@ -865,10 +865,10 @@ def report_spam(self, **kwargs):
)

@payload('saved_search', list=True)
def saved_searches(self, *args, **kwargs):
def saved_searches(self, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-list
"""
return self.request('GET', 'saved_searches/list', *args, **kwargs)
return self.request('GET', 'saved_searches/list', **kwargs)

@payload('saved_search')
def get_saved_search(self, saved_search_id, *args, **kwargs):
Expand Down

0 comments on commit c5f5b4b

Please sign in to comment.