From 6b761ce7f42ad348e9d0dade6657e020f326f88d Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 9 Feb 2021 22:46:40 -0600 Subject: [PATCH] Stop allowing positional arguments for API.get_user --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index e708b23..c6ead3e 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -443,11 +443,11 @@ class API: ) @payload('user') - def get_user(self, *args, **kwargs): + def get_user(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-show """ return self.request( - 'GET', 'users/show', *args, endpoint_parameters=( + 'GET', 'users/show', endpoint_parameters=( 'user_id', 'screen_name', 'include_entities' ), **kwargs ) -- 2.25.1