From 731710944c07c82a7a2b52e5a73f0d20ec77b9ae Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 10 Feb 2021 13:16:01 -0600 Subject: [PATCH] Stop allowing positional arguments for API.lookup_users --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index dec5249..45cb459 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -465,12 +465,12 @@ class API: ) @payload('user', list=True) - def lookup_users(self, *args, user_id=None, screen_name=None, **kwargs): + def lookup_users(self, *, user_id=None, screen_name=None, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-lookup """ return self.request( 'POST', 'users/lookup', list_to_csv(user_id), - list_to_csv(screen_name), *args, endpoint_parameters=( + list_to_csv(screen_name), endpoint_parameters=( 'user_id', 'screen_name', 'include_entities', 'tweet_mode' ), **kwargs ) -- 2.25.1