projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70d9665
)
Stop allowing positional arguments besides id for API.retweet
author
Harmon
<Harmon758@gmail.com>
Wed, 10 Feb 2021 04:08:48 +0000
(22:08 -0600)
committer
Harmon
<Harmon758@gmail.com>
Wed, 10 Feb 2021 04:08:48 +0000
(22:08 -0600)
tweepy/api.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/api.py
b/tweepy/api.py
index 6fefefceaec8b4f521c7ca111977a6e25ce3b495..4e3382c4c637f2de22e29e42dd86b64ba9b50182 100644
(file)
--- a/
tweepy/api.py
+++ b/
tweepy/api.py
@@
-402,11
+402,11
@@
class API:
)
@payload('status')
- def retweet(self, id, *
args, *
*kwargs):
+ def retweet(self, id, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-retweet-id
"""
return self.request(
- 'POST', f'statuses/retweet/{id}',
*args,
endpoint_parameters=(
+ 'POST', f'statuses/retweet/{id}', endpoint_parameters=(
'trim_user',
), **kwargs
)