Skip to content

Commit

Permalink
Stop allowing positional arguments besides id for API.unretweet
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 10, 2021
1 parent 6d93f3b commit 4626c42
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 @@ -412,11 +412,11 @@ def retweet(self, id, **kwargs):
)

@payload('status')
def unretweet(self, id, *args, **kwargs):
def unretweet(self, id, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-unretweet-id
"""
return self.request(
'POST', f'statuses/unretweet/{id}', *args, endpoint_parameters=(
'POST', f'statuses/unretweet/{id}', endpoint_parameters=(
'trim_user',
), **kwargs
)
Expand Down

0 comments on commit 4626c42

Please sign in to comment.