From dc8185429815deeea51fad06995e64fb58c07009 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 14 Feb 2021 00:14:09 -0600 Subject: [PATCH] Stop allowing positional arguments for API.blocks --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.25.1