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