projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecd19f0
)
Stop allowing positional arguments besides id for API.destroy_favorite
author
Harmon
<Harmon758@gmail.com>
Sat, 13 Feb 2021 20:06:29 +0000
(14:06 -0600)
committer
Harmon
<Harmon758@gmail.com>
Sat, 13 Feb 2021 20:06:29 +0000
(14:06 -0600)
tweepy/api.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/api.py
b/tweepy/api.py
index 0d6eb25c4cc1136d016136c56ee8dd0c0eb7a3c5..0e8213f7c4657027ab90a3ce4a3afdfc52966d23 100644
(file)
--- a/
tweepy/api.py
+++ b/
tweepy/api.py
@@
-761,11
+761,11
@@
class API:
)
@payload('status')
- def destroy_favorite(self, id, *
args, *
*kwargs):
+ def destroy_favorite(self, id, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-favorites-destroy
"""
return self.request(
- 'POST', 'favorites/destroy', id,
*args,
endpoint_parameters=(
+ 'POST', 'favorites/destroy', id, endpoint_parameters=(
'id', 'include_entities'
), **kwargs
)