From c49cfb272f15ff11ef7cc0f27a6a6ed91ac6c755 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 13 Feb 2021 16:17:16 -0600 Subject: [PATCH] Stop allowing positional arguments for API.destroy_block Also improve endpoint parameters order to match Twitter API documentation --- tweepy/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index b875a52..9dc02f3 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -781,12 +781,12 @@ class API: ) @payload('user') - def destroy_block(self, *args, **kwargs): + def destroy_block(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-blocks-destroy """ return self.request( - 'POST', 'blocks/destroy', *args, endpoint_parameters=( - 'user_id', 'screen_name', 'include_entities', 'skip_status' + 'POST', 'blocks/destroy', endpoint_parameters=( + 'screen_name', 'user_id', 'include_entities', 'skip_status' ), **kwargs ) -- 2.25.1