Change API.lookup_users parameters to be keyword-only
authorHarmon <Harmon758@gmail.com>
Wed, 10 Feb 2021 19:14:49 +0000 (13:14 -0600)
committerHarmon <Harmon758@gmail.com>
Wed, 10 Feb 2021 19:14:49 +0000 (13:14 -0600)
Change user_id and screen_name API.lookup_users parameters to be keyword-only

tweepy/api.py

index 3e38e61d9dc4addaf9547180219b19524f5559fd..dec52490c6d5bf2f09a93fc018dc0749e925cdb3 100644 (file)
@@ -465,7 +465,7 @@ class API:
         )
 
     @payload('user', list=True)
-    def lookup_users(self, user_id=None, screen_name=None, *args, **kwargs):
+    def lookup_users(self, *args, 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(