projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d93f3b
)
Stop allowing positional arguments besides id for API.unretweet
author
Harmon
<Harmon758@gmail.com>
Wed, 10 Feb 2021 04:11:27 +0000
(22:11 -0600)
committer
Harmon
<Harmon758@gmail.com>
Wed, 10 Feb 2021 04:11:27 +0000
(22:11 -0600)
tweepy/api.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/api.py
b/tweepy/api.py
index f1e86c90c16fff1656fe0b565c2adcc7552a05b2..c857846c705af0711542e558382d3939d3f20ef0 100644
(file)
--- a/
tweepy/api.py
+++ b/
tweepy/api.py
@@
-412,11
+412,11
@@
class API:
)
@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
)