Skip to content

Commit

Permalink
Stop allowing positional arguments for API.destroy_saved_search
Browse files Browse the repository at this point in the history
Stop allowing positional arguments besides id for API.destroy_saved_search
  • Loading branch information
Harmon758 committed Feb 14, 2021
1 parent e7b5fac commit b7afca2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,12 +887,10 @@ def create_saved_search(self, query, **kwargs):
)

@payload('saved_search')
def destroy_saved_search(self, id, *args, **kwargs):
def destroy_saved_search(self, id, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-destroy-id
"""
return self.request(
'POST', f'saved_searches/destroy/{id}', *args, **kwargs
)
return self.request('POST', f'saved_searches/destroy/{id}', **kwargs)

@payload('list')
def create_list(self, *args, **kwargs):
Expand Down

0 comments on commit b7afca2

Please sign in to comment.