From: Harmon Date: Sun, 14 Feb 2021 06:14:09 +0000 (-0600) Subject: Stop allowing positional arguments for API.blocks X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dc8185429815deeea51fad06995e64fb58c07009;p=tweepy.git Stop allowing positional arguments for API.blocks --- diff --git a/tweepy/api.py b/tweepy/api.py index 9aedeec..6ed2d43 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -834,11 +834,11 @@ class API: @pagination(mode='cursor') @payload('user', list=True) - def blocks(self, *args, **kwargs): + def blocks(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-blocks-list """ return self.request( - 'GET', 'blocks/list', *args, endpoint_parameters=( + 'GET', 'blocks/list', endpoint_parameters=( 'include_entities', 'skip_status', 'cursor' ), **kwargs )