Change API.lookup_friendships parameters to be keyword-only
authorHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 03:51:24 +0000 (21:51 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 03:51:24 +0000 (21:51 -0600)
Change user_id and screen_name API.lookup_friendships parameters to be keyword-only

tweepy/api.py

index b29947eedf4fca32fdb789e8284581175db194c1..69bee23c4bf9ff5dfcc55be90291a425d969266d 100644 (file)
@@ -585,7 +585,7 @@ class API:
         )
 
     @payload('relationship', list=True)
-    def lookup_friendships(self, user_id=None, screen_name=None, **kwargs):
+    def lookup_friendships(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-friendships-lookup
         """
         return self.request(